rust/tests/ui/regions/regions-in-structs.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
647 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0261]: use of undeclared lifetime name `'a`
2018-12-25 09:56:47 -06:00
--> $DIR/regions-in-structs.rs:10:9
2018-08-08 07:28:26 -05:00
|
LL | struct StructDecl {
| - help: consider introducing lifetime `'a` here: `<'a>`
2019-03-09 06:03:44 -06:00
LL | a: &'a isize,
2018-08-08 07:28:26 -05:00
| ^^ undeclared lifetime
error[E0261]: use of undeclared lifetime name `'a`
2018-12-25 09:56:47 -06:00
--> $DIR/regions-in-structs.rs:11:9
2018-08-08 07:28:26 -05:00
|
LL | struct StructDecl {
| - help: consider introducing lifetime `'a` here: `<'a>`
LL | a: &'a isize,
2019-03-09 06:03:44 -06:00
LL | b: &'a isize,
2018-08-08 07:28:26 -05:00
| ^^ undeclared lifetime
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0261`.