我的Rust程序中的math
模块出现以下错误。
我该怎么解决呢?
error[E0554]: `#![feature]` may not be used on the stable release channel
--> C:\Users\pc\.cargo\registry\src\github.com-1ecc6299db9ec823\math-0.10.0\src\lib.rs:3:12
|
3 | #![feature(drain_filter)]
| ^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> C:\Users\pc\.cargo\registry\src\github.com-1ecc6299db9ec823\math-0.10.0\src\lib.rs:4:12
|
4 | #![feature(bool_to_option)]
| ^^^^^^^^^^^^^^
Compiling rand_distr v0.4.3
For more information about this error, try `rustc --explain E0554`.
error: could not compile `math` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
1条答案
按热度按时间u91tlkcl1#
错误消息指出您正在使用的math crate正在使用不稳定的特性(#![feature]),这些特性在Rust的稳定版本通道上不可用。