我正在尝试通过curl安装rustlings,但是我遇到了这个问题:
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-nightly (0af8e872e 2019-06-30),并尝试安装rustlings 4.3.0
有人知道我如何修复这个错误吗?
发布于 2021-01-02 03:54:22
in Rust 1.40稳定了非穷举结构和枚举。您正在运行Rust 1.37,这是编译器的一个较旧版本。将您的工具链更新到较新的版本将解决此问题:
$ rustup update
https://stackoverflow.com/questions/65532741
复制相似问题