【发布时间】:2020-12-20 09:41:11
【问题描述】:
这个
fn main() {
let test = "Foo".to_string();
test.to_lowercase();
}
产生错误
error: use of unstable library feature 'collections'
test.to_lowercase();
^~~~~~~~~~~~~~
但我正在使用
rustc 1.2.0-nightly (f76d9bcfc 2015-05-28) (built 2015-05-28)
根据http://doc.rust-lang.org/1.0.0/book/release-channels.html,每晚启用不稳定功能。我也试过stable和beta,但错误是完全一样的。那么这里有什么问题呢?
【问题讨论】:
标签: rust