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

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

20 lines
594 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0261]: use of undeclared lifetime name `'foo`
2018-12-25 15:56:47 +00:00
--> $DIR/regions-in-enums.rs:13:9
2018-08-08 12:28:26 +00:00
|
LL | enum No0 {
| - help: consider introducing lifetime `'foo` here: `<'foo>`
2019-03-09 12:03:44 +00:00
LL | X5(&'foo usize)
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-enums.rs:17:9
2018-08-08 12:28:26 +00:00
|
LL | enum No1 {
| - help: consider introducing lifetime `'a` here: `<'a>`
2019-03-09 12:03:44 +00:00
LL | X6(&'a usize)
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`.