gpt4 book ai didi

rust - 由于实验功能无法安装沙沙声

转载 作者:行者123 更新时间:2023-12-03 11:46:57 24 4
gpt4 key购买 nike

我正在尝试通过curl安装沙沙作响,但我遇到了这个问题:

error[E0658]: non exhaustive is an experimental feature
--> /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/console-0.14.0/src/kb.rs:5:1
|
5 | #[non_exhaustive]
| ^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/44109
= help: add #![feature(non_exhaustive)] to the crate attributes to enable

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: failed to compile `rustlings v4.3.0 (/home/me/Desktop/rust/rustlings)`, intermediate artifacts can be found at `/home/me/Desktop/rust/rustlings/target`

Caused by:
Could not compile `console`.




安装程序将我重定向到 https://github.com/rust-lang/rust/issues/44109,这没有帮助。我每晚运行rustc 1.37.0(0af8e872e 2019-06-30)并尝试安装rustings 4.3.0
有人知道我该如何解决这个错误?

最佳答案

非详尽的结构和枚举被稳定为in Rust 1.40。您正在运行Rust 1.37,它是编译器的旧版本。将您的工具链更新到较新的版本将解决此问题:

$ rustup update

关于rust - 由于实验功能无法安装沙沙声,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65532741/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com