summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-undeclared.stderr
blob: 6bfde5524ac4961a2861d57a2af59f4bc35cab05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
error[E0261]: use of undeclared lifetime name `'blk`
  --> $DIR/regions-undeclared.rs:1:14
   |
LL | static c_x: &'blk isize = &22;
   |              ^^^^ undeclared lifetime

error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/regions-undeclared.rs:4:10
   |
LL | enum EnumDecl {
   |              - help: consider introducing lifetime `'a` here: `<'a>`
LL |     Foo(&'a isize),
   |          ^^ undeclared lifetime

error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/regions-undeclared.rs:5:10
   |
LL | enum EnumDecl {
   |              - help: consider introducing lifetime `'a` here: `<'a>`
LL |     Foo(&'a isize),
LL |     Bar(&'a isize),
   |          ^^ undeclared lifetime

error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/regions-undeclared.rs:8:15
   |
LL | fn fnDecl(x: &'a isize,
   |          -    ^^ undeclared lifetime
   |          |
   |          help: consider introducing lifetime `'a` here: `<'a>`

error[E0261]: use of undeclared lifetime name `'a`
  --> $DIR/regions-undeclared.rs:9:15
   |
LL | fn fnDecl(x: &'a isize,
   |          - help: consider introducing lifetime `'a` here: `<'a>`
LL |           y: &'a isize)
   |               ^^ undeclared lifetime

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0261`.