]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0452.md
Spell check librustc_error_codes
[rust.git] / src / librustc_error_codes / error_codes / E0452.md
1 An invalid lint attribute has been given. Erroneous code example:
2
3 ```compile_fail,E0452
4 #![allow(foo = "")] // error: malformed lint attribute
5 ```
6
7 Lint attributes only accept a list of identifiers (where each identifier is a
8 lint name). Ensure the attribute is of this form:
9
10 ```
11 #![allow(foo)] // ok!
12 // or:
13 #![allow(foo, foo2)] // ok!
14 ```