我正在通过工作。在其中一个问题中,有一个名为test.sh的bash文件,它检查Rust程序是否正确编译。测试脚本接受-v标志。使用-v,脚本将为每次故障发出来自Rust编译器的错误输出。
当我运行./test.sh -v时,我会收到这样的消息:
error: the option `Z` is only accepted on the nightly compiler
我正在尝试使用Windows Powershell运行nightly Rust的测试。我在目录中运行cargo test,然后我得到
Compiling rustcraft v0.1.0 (file:///C:/Users/Phoenix/Desktop/Rust/rustcraft)
error[E0554]: #![feature] may not be used on the stable release channel
--> C:\Users\Phoenix\Desktop\Rust\rustcraft\src\main.rs:1:1
|
1 | #![feature(i
我正在尝试通过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-la