Error code E0452

An invalid lint attribute has been given.

Erroneous code example:

#![allow(foo = "")] // error: malformed lint attribute
Run

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!
Run

Back to list of error codes