我正在尝试使用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在夜间频道上编译它,但如何编译呢?在帮助部分或我找到的任何网站中,我找不到任何关于指定频道的引用。
https://stackoverflow.com/questions/48593858
复制相似问题