]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0556.md
Add 'src/tools/miri/' from commit '75dd959a3a40eb5b4574f8d2e23aa6efbeb33573'
[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 ```