]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0556.md
:arrow_up: rust-analyzer
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0556.md
1 The `feature` attribute was badly formed.
2
3 Erroneous code example:
4
5 ```compile_fail,E0556
6 #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)] // error!
7 #![feature] // error!
8 #![feature = "foo"] // error!
9 ```
10
11 The `feature` attribute only accept a "feature flag" and can only be used on
12 nightly. Example:
13
14 ```ignore (only works in nightly)
15 #![feature(flag)]
16 ```