An invalid name was used for a lifetime parameter.
Erroneous code example:
#![allow(unused)]
fn main() {
// error, invalid lifetime parameter name `'static`
fn foo<'static>(x: &'static str) { }
} Declaring certain lifetime names in parameters is disallowed. For example, because the 'static lifetime is a special built-in lifetime name denoting the lifetime of the entire program, this is an error:
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0262.html