Static rustc_ap_rustc_lint_defs::builtin::UNUSED_LIFETIMES[][src]

pub static UNUSED_LIFETIMES: &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.