11error[E0261]: use of undeclared lifetime name `'b`
2- --> $DIR/regions-name-undeclared.rs:15 :24
2+ --> $DIR/regions-name-undeclared.rs:16 :24
33 |
44LL | fn m4(&self, arg: &'b isize) { }
55 | ^^ undeclared lifetime
@@ -15,7 +15,7 @@ LL | fn m4<'b>(&self, arg: &'b isize) { }
1515 | ^^^^
1616
1717error[E0261]: use of undeclared lifetime name `'b`
18- --> $DIR/regions-name-undeclared.rs:16 :12
18+ --> $DIR/regions-name-undeclared.rs:17 :12
1919 |
2020LL | fn m5(&'b self) { }
2121 | ^^ undeclared lifetime
@@ -31,7 +31,7 @@ LL | fn m5<'b>(&'b self) { }
3131 | ^^^^
3232
3333error[E0261]: use of undeclared lifetime name `'b`
34- --> $DIR/regions-name-undeclared.rs:17 :27
34+ --> $DIR/regions-name-undeclared.rs:18 :27
3535 |
3636LL | fn m6(&self, arg: Foo<'b>) { }
3737 | ^^ undeclared lifetime
@@ -47,7 +47,7 @@ LL | fn m6<'b>(&self, arg: Foo<'b>) { }
4747 | ^^^^
4848
4949error[E0261]: use of undeclared lifetime name `'a`
50- --> $DIR/regions-name-undeclared.rs:25 :22
50+ --> $DIR/regions-name-undeclared.rs:26 :22
5151 |
5252LL | type X = Option<&'a isize>;
5353 | - ^^ undeclared lifetime
@@ -57,7 +57,7 @@ LL | type X = Option<&'a isize>;
5757 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
5858
5959error[E0261]: use of undeclared lifetime name `'a`
60- --> $DIR/regions-name-undeclared.rs:27 :13
60+ --> $DIR/regions-name-undeclared.rs:28 :13
6161 |
6262LL | enum E {
6363 | - help: consider introducing lifetime `'a` here: `<'a>`
@@ -67,7 +67,7 @@ LL | E1(&'a isize)
6767 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
6868
6969error[E0261]: use of undeclared lifetime name `'a`
70- --> $DIR/regions-name-undeclared.rs:30 :13
70+ --> $DIR/regions-name-undeclared.rs:31 :13
7171 |
7272LL | struct S {
7373 | - help: consider introducing lifetime `'a` here: `<'a>`
@@ -77,7 +77,7 @@ LL | f: &'a isize
7777 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
7878
7979error[E0261]: use of undeclared lifetime name `'a`
80- --> $DIR/regions-name-undeclared.rs:32 :14
80+ --> $DIR/regions-name-undeclared.rs:33 :14
8181 |
8282LL | fn f(a: &'a isize) { }
8383 | - ^^ undeclared lifetime
@@ -87,7 +87,7 @@ LL | fn f(a: &'a isize) { }
8787 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
8888
8989error[E0261]: use of undeclared lifetime name `'a`
90- --> $DIR/regions-name-undeclared.rs:40 :17
90+ --> $DIR/regions-name-undeclared.rs:41 :17
9191 |
9292LL | fn fn_types(a: &'a isize,
9393 | - ^^ undeclared lifetime
@@ -97,7 +97,7 @@ LL | fn fn_types(a: &'a isize,
9797 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
9898
9999error[E0261]: use of undeclared lifetime name `'b`
100- --> $DIR/regions-name-undeclared.rs:42 :36
100+ --> $DIR/regions-name-undeclared.rs:43 :36
101101 |
102102LL | ... &'b isize,
103103 | ^^ undeclared lifetime
@@ -114,7 +114,7 @@ LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
114114 | ^^^^
115115
116116error[E0261]: use of undeclared lifetime name `'b`
117- --> $DIR/regions-name-undeclared.rs:45 :36
117+ --> $DIR/regions-name-undeclared.rs:46 :36
118118 |
119119LL | ... &'b isize)>,
120120 | ^^ undeclared lifetime
@@ -131,7 +131,7 @@ LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
131131 | ^^^^
132132
133133error[E0261]: use of undeclared lifetime name `'a`
134- --> $DIR/regions-name-undeclared.rs:46 :17
134+ --> $DIR/regions-name-undeclared.rs:47 :17
135135 |
136136LL | fn fn_types(a: &'a isize,
137137 | - help: consider introducing lifetime `'a` here: `<'a>`
@@ -141,6 +141,22 @@ LL | c: &'a isize)
141141 |
142142 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
143143
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
145161
146162For more information about this error, try `rustc --explain E0261`.
0 commit comments