首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >由于实验功能而未安装的沙司

由于实验功能而未安装的沙司
EN

Stack Overflow用户
提问于 2021-01-02 02:59:32
回答 1查看 377关注 0票数 0

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

代码语言:javascript
运行
复制
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

有人知道我如何修复这个错误吗?

EN

回答 1

Stack Overflow用户

发布于 2021-01-02 03:54:22

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

代码语言:javascript
运行
复制
$ rustup update
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65532741

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档