Feature attributes are only allowed on the nightly release channel. Stable or beta compilers will not comply.
Erroneous code example:
#![feature(lang_items)] // error: `#![feature]` may not be used on the
// stable release channel If you need the feature, make sure to use a nightly release of the compiler (but be warned that the feature may be removed or altered in the future).
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0554.html