Closed ApsarasX closed 2 years ago
出现这个问题的原因是,在新版本的rustc中const_fn这个特性已经stable了,所以用新版编译器编译的话就会出现feature不存在的错误。这是我们的失误,我们之前没有预料到这个特性会这么快就稳定。
解决办法: 将通过rustup default
等手段将编译器版本回退到2021-03-25之前的版本。
在下一个版本中我们将会为项目添加rust-toolchain文件以对编译环境进行限制,以保证不会再出现类似的错误。
rustup toolchain install nightly-2021-03-25
rustup default nightly-2021-03-25
v1.0.0-rc2 版本已通过rust-toolchain文件解决了该问题
v1.0.0-rc2 版本已通过rust-toolchain文件解决了该问题
@bxq2011hust 可以close了😏
我的rust版本是1.53.0
按照文档编译HelloWorld时出现以下错误