]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0556.md
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[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 ```