]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-undeclared.stderr
Rollup merge of #93400 - ChayimFriedman2:dont-suggest-using-const-with-bounds-unused...
[rust.git] / src / test / ui / regions / regions-undeclared.stderr
1 error[E0261]: use of undeclared lifetime name `'blk`
2   --> $DIR/regions-undeclared.rs:1:14
3    |
4 LL | static c_x: &'blk isize = &22;
5    |              ^^^^ undeclared lifetime
6
7 error[E0261]: use of undeclared lifetime name `'a`
8   --> $DIR/regions-undeclared.rs:4:10
9    |
10 LL | enum EnumDecl {
11    |              - help: consider introducing lifetime `'a` here: `<'a>`
12 LL |     Foo(&'a isize),
13    |          ^^ undeclared lifetime
14
15 error[E0261]: use of undeclared lifetime name `'a`
16   --> $DIR/regions-undeclared.rs:5:10
17    |
18 LL | enum EnumDecl {
19    |              - help: consider introducing lifetime `'a` here: `<'a>`
20 LL |     Foo(&'a isize),
21 LL |     Bar(&'a isize),
22    |          ^^ undeclared lifetime
23
24 error[E0261]: use of undeclared lifetime name `'a`
25   --> $DIR/regions-undeclared.rs:8:15
26    |
27 LL | fn fnDecl(x: &'a isize,
28    |          -    ^^ undeclared lifetime
29    |          |
30    |          help: consider introducing lifetime `'a` here: `<'a>`
31
32 error[E0261]: use of undeclared lifetime name `'a`
33   --> $DIR/regions-undeclared.rs:9:15
34    |
35 LL | fn fnDecl(x: &'a isize,
36    |          - help: consider introducing lifetime `'a` here: `<'a>`
37 LL |           y: &'a isize)
38    |               ^^ undeclared lifetime
39
40 error: aborting due to 5 previous errors
41
42 For more information about this error, try `rustc --explain E0261`.