我正在尝试使用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(integer_atomics)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: #![feature] may not be used on the stable release channel
--> C:\Users\Phoenix\Desktop\Rust\rustcraft\src\main.rs:2:1
|
2 | #![feature(collections)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
显然,我必须告诉Cargo在nightly频道上进行编译,但如何操作呢?在帮助部分或我找到的任何网站中,都找不到有关指定频道的参考资料。