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