about summary refs log tree commit diff
path: root/tests/ui/regions/regions-undeclared.stderr
blob: 2bc0f1848032ecad72a9add151f8c269d3a04251 (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
43
44
45
46
47
48
49
50
51
52
53
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 |     Foo(&'a isize),
   |          ^^ undeclared lifetime
   |
help: consider introducing lifetime `'a` here
   |
LL | enum EnumDecl<'a> {
   |              ++++

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

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
   |
LL | fn fnDecl<'a>(x: &'a isize,
   |          ++++

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

error: aborting due to 5 previous errors

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