os-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
Text
Raw Normal View History

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