pub static UNUSED_ATTRIBUTES: &Lint
Expand description

The unused_attributes lint detects attributes that were not used by the compiler.

§Example

#![ignore]

{{produces}}

§Explanation

Unused attributes may indicate the attribute is placed in the wrong position. Consider removing it, or placing it in the correct position. Also consider if you intended to use an inner attribute (with a ! such as #![allow(unused)]) which applies to the item the attribute is within, or an outer attribute (without a ! such as #[allow(unused)]) which applies to the item following the attribute.