]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0452.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0452.md
CommitLineData
ba9703b0
XL
1An invalid lint attribute has been given.
2
3Erroneous code example:
60c5eb7d
XL
4
5```compile_fail,E0452
6#![allow(foo = "")] // error: malformed lint attribute
7```
8
9Lint attributes only accept a list of identifiers (where each identifier is a
10lint name). Ensure the attribute is of this form:
11
12```
13#![allow(foo)] // ok!
14// or:
15#![allow(foo, foo2)] // ok!
16```