## UNUSED_LIFETIMES

# Static UNUSED_LIFETIMES

Source

    pub static UNUSED_LIFETIMES: &'static Lint

Expand description

The `unused_lifetimes` lint detects lifetime parameters that are never used.

#### §Example

ⓘ

    #[deny(unused_lifetimes)]

    pub fn foo<'a>() {}

{{produces}}

#### §Explanation

Unused lifetime parameters may signal a mistake or unfinished code. Consider removing the parameter.