1
1
error[E0261]: use of undeclared lifetime name `'b`
2
- --> $DIR/regions-name-undeclared.rs:15 :24
2
+ --> $DIR/regions-name-undeclared.rs:16 :24
3
3
|
4
4
LL | fn m4(&self, arg: &'b isize) { }
5
5
| ^^ undeclared lifetime
@@ -15,7 +15,7 @@ LL | fn m4<'b>(&self, arg: &'b isize) { }
15
15
| ^^^^
16
16
17
17
error[E0261]: use of undeclared lifetime name `'b`
18
- --> $DIR/regions-name-undeclared.rs:16 :12
18
+ --> $DIR/regions-name-undeclared.rs:17 :12
19
19
|
20
20
LL | fn m5(&'b self) { }
21
21
| ^^ undeclared lifetime
@@ -31,7 +31,7 @@ LL | fn m5<'b>(&'b self) { }
31
31
| ^^^^
32
32
33
33
error[E0261]: use of undeclared lifetime name `'b`
34
- --> $DIR/regions-name-undeclared.rs:17 :27
34
+ --> $DIR/regions-name-undeclared.rs:18 :27
35
35
|
36
36
LL | fn m6(&self, arg: Foo<'b>) { }
37
37
| ^^ undeclared lifetime
@@ -47,7 +47,7 @@ LL | fn m6<'b>(&self, arg: Foo<'b>) { }
47
47
| ^^^^
48
48
49
49
error[E0261]: use of undeclared lifetime name `'a`
50
- --> $DIR/regions-name-undeclared.rs:25 :22
50
+ --> $DIR/regions-name-undeclared.rs:26 :22
51
51
|
52
52
LL | type X = Option<&'a isize>;
53
53
| - ^^ undeclared lifetime
@@ -57,7 +57,7 @@ LL | type X = Option<&'a isize>;
57
57
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
58
58
59
59
error[E0261]: use of undeclared lifetime name `'a`
60
- --> $DIR/regions-name-undeclared.rs:27 :13
60
+ --> $DIR/regions-name-undeclared.rs:28 :13
61
61
|
62
62
LL | enum E {
63
63
| - help: consider introducing lifetime `'a` here: `<'a>`
@@ -67,7 +67,7 @@ LL | E1(&'a isize)
67
67
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
68
68
69
69
error[E0261]: use of undeclared lifetime name `'a`
70
- --> $DIR/regions-name-undeclared.rs:30 :13
70
+ --> $DIR/regions-name-undeclared.rs:31 :13
71
71
|
72
72
LL | struct S {
73
73
| - help: consider introducing lifetime `'a` here: `<'a>`
@@ -77,7 +77,7 @@ LL | f: &'a isize
77
77
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
78
78
79
79
error[E0261]: use of undeclared lifetime name `'a`
80
- --> $DIR/regions-name-undeclared.rs:32 :14
80
+ --> $DIR/regions-name-undeclared.rs:33 :14
81
81
|
82
82
LL | fn f(a: &'a isize) { }
83
83
| - ^^ undeclared lifetime
@@ -87,7 +87,7 @@ LL | fn f(a: &'a isize) { }
87
87
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
88
88
89
89
error[E0261]: use of undeclared lifetime name `'a`
90
- --> $DIR/regions-name-undeclared.rs:40 :17
90
+ --> $DIR/regions-name-undeclared.rs:41 :17
91
91
|
92
92
LL | fn fn_types(a: &'a isize,
93
93
| - ^^ undeclared lifetime
@@ -97,7 +97,7 @@ LL | fn fn_types(a: &'a isize,
97
97
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
98
98
99
99
error[E0261]: use of undeclared lifetime name `'b`
100
- --> $DIR/regions-name-undeclared.rs:42 :36
100
+ --> $DIR/regions-name-undeclared.rs:43 :36
101
101
|
102
102
LL | ... &'b isize,
103
103
| ^^ undeclared lifetime
@@ -114,7 +114,7 @@ LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
114
114
| ^^^^
115
115
116
116
error[E0261]: use of undeclared lifetime name `'b`
117
- --> $DIR/regions-name-undeclared.rs:45 :36
117
+ --> $DIR/regions-name-undeclared.rs:46 :36
118
118
|
119
119
LL | ... &'b isize)>,
120
120
| ^^ undeclared lifetime
@@ -131,7 +131,7 @@ LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
131
131
| ^^^^
132
132
133
133
error[E0261]: use of undeclared lifetime name `'a`
134
- --> $DIR/regions-name-undeclared.rs:46 :17
134
+ --> $DIR/regions-name-undeclared.rs:47 :17
135
135
|
136
136
LL | fn fn_types(a: &'a isize,
137
137
| - help: consider introducing lifetime `'a` here: `<'a>`
@@ -141,6 +141,22 @@ LL | c: &'a isize)
141
141
|
142
142
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
143
143
144
- error: aborting due to 11 previous errors
144
+ error[E0261]: use of undeclared lifetime name `'a`
145
+ --> $DIR/regions-name-undeclared.rs:53:31
146
+ |
147
+ LL | async fn buggy(&self) -> &'a str {
148
+ | ^^ undeclared lifetime
149
+ |
150
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
151
+ help: consider introducing lifetime `'a` here
152
+ |
153
+ LL | impl<'a> Bug {
154
+ | ^^^^
155
+ help: consider introducing lifetime `'a` here
156
+ |
157
+ LL | async fn buggy<'a>(&self) -> &'a str {
158
+ | ^^^^
159
+
160
+ error: aborting due to 12 previous errors
145
161
146
162
For more information about this error, try `rustc --explain E0261`.
0 commit comments