rust/tests/ui/regions/regions-undeclared.stderr

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

43 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0261]: use of undeclared lifetime name `'blk`
2018-12-25 09:56:47 -06:00
--> $DIR/regions-undeclared.rs:1:14
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | static c_x: &'blk isize = &22;
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-undeclared.rs:4:10
2018-08-08 07:28:26 -05:00
|
LL | enum EnumDecl {
| - help: consider introducing lifetime `'a` here: `<'a>`
2019-03-09 06:03:44 -06:00
LL | Foo(&'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-undeclared.rs:5:10
2018-08-08 07:28:26 -05:00
|
LL | enum EnumDecl {
| - help: consider introducing lifetime `'a` here: `<'a>`
LL | Foo(&'a isize),
2019-03-09 06:03:44 -06:00
LL | Bar(&'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-undeclared.rs:8:15
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn fnDecl(x: &'a isize,
| - ^^ undeclared lifetime
| |
| help: consider introducing lifetime `'a` here: `<'a>`
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-undeclared.rs:9:15
2018-08-08 07:28:26 -05:00
|
LL | fn fnDecl(x: &'a isize,
| - help: consider introducing lifetime `'a` here: `<'a>`
2019-03-09 06:03:44 -06:00
LL | y: &'a isize)
2018-08-08 07:28:26 -05:00
| ^^ undeclared lifetime
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0261`.