Static rustc_lint_defs::builtin::UNUSED_LIFETIMES
source · 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.