$ cargo expand
Checking helo v0.1.0 (/Users/Buzz/Documents/git/rust-lang/hello)
error: the option `Z` is only accepted on the nightly compiler
error: could not compile `hello`
# Install nightly toolchain:
rustup install nightly
# Switch to nightly toolchain
rustup override set nightly
# Show the defautl toolchain
rustup default
# Set the default toolchain to the latest nightly
rustup default nightly
# Set the default toolchain to the latest stable
rustup default stable
# To use to a specific nightly for a directory:
rustup override set nightly-2014-12-18
# Or a specific stable release:
rustup override set 1.0.0
# To see the active toolchain
rustup show
# To remove the override and use the default toolchain again,
rustup override unset
手机扫一扫
移动阅读更方便
你可能感兴趣的文章