Content-Length: 23892 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0262.html

E0262 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0262

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:









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0262.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy