summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0452.md
blob: 429813a7cdd4ede67132e041df72ad0c4d0cb5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
An invalid lint attribute has been given.

Erroneous code example:

```compile_fail,E0452
#![allow(foo = "")] // error: malformed lint attribute
```

Lint attributes only accept a list of identifiers (where each identifier is a
lint name). Ensure the attribute is of this form:

```
#![allow(foo)] // ok!
// or:
#![allow(foo, foo2)] // ok!
```