1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
struct Yes1<'a> { x: &'a usize, } struct Yes2<'a> { x: &'a usize, } struct StructDecl { a: &'a isize, //~ ERROR use of undeclared lifetime name `'a` b: &'a isize, //~ ERROR use of undeclared lifetime name `'a` } fn main() {}