]> git.lizzy.rs Git - rust.git/blob - tests/ui/regions/regions-in-structs.stderr
internally change regions to be covariant
[rust.git] / tests / ui / regions / regions-in-structs.stderr
1 error[E0261]: use of undeclared lifetime name `'a`
2   --> $DIR/regions-in-structs.rs:10:9
3    |
4 LL | struct StructDecl {
5    |                  - help: consider introducing lifetime `'a` here: `<'a>`
6 LL |     a: &'a isize,
7    |         ^^ undeclared lifetime
8
9 error[E0261]: use of undeclared lifetime name `'a`
10   --> $DIR/regions-in-structs.rs:11:9
11    |
12 LL | struct StructDecl {
13    |                  - help: consider introducing lifetime `'a` here: `<'a>`
14 LL |     a: &'a isize,
15 LL |     b: &'a isize,
16    |         ^^ undeclared lifetime
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0261`.