1 2 3 4 5 6 7 8 9
fn foo(x: &'a str) { } //~ ERROR E0261 //~| undeclared lifetime struct Foo { x: &'a str, //~ ERROR E0261 //~| undeclared lifetime } fn main() {}