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