|
1 | | -error[E0261]: use of undeclared lifetime name `'a` |
2 | | - --> $DIR/feature-gate-in_band_lifetimes.rs:50:14 |
3 | | - | |
4 | | -LL | impl MyTrait<'a> for Y<&'a u8> { |
5 | | - | - ^^ undeclared lifetime |
6 | | - | | |
7 | | - | help: consider introducing lifetime `'a` here: `<'a>` |
8 | | - | |
9 | | - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
10 | | - |
11 | | -error[E0261]: use of undeclared lifetime name `'a` |
12 | | - --> $DIR/feature-gate-in_band_lifetimes.rs:50:25 |
13 | | - | |
14 | | -LL | impl MyTrait<'a> for Y<&'a u8> { |
15 | | - | - ^^ undeclared lifetime |
16 | | - | | |
17 | | - | help: consider introducing lifetime `'a` here: `<'a>` |
18 | | - | |
19 | | - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
20 | | - |
21 | | -error[E0261]: use of undeclared lifetime name `'a` |
22 | | - --> $DIR/feature-gate-in_band_lifetimes.rs:53:31 |
23 | | - | |
24 | | -LL | fn my_lifetime(&self) -> &'a u8 { self.0 } |
25 | | - | ^^ undeclared lifetime |
26 | | - | |
27 | | - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
28 | | -help: consider introducing lifetime `'a` here |
29 | | - | |
30 | | -LL | impl<'a> MyTrait<'a> for Y<&'a u8> { |
31 | | - | ++++ |
32 | | -help: consider introducing lifetime `'a` here |
33 | | - | |
34 | | -LL | fn my_lifetime<'a>(&self) -> &'a u8 { self.0 } |
35 | | - | ++++ |
36 | | - |
37 | | -error[E0261]: use of undeclared lifetime name `'b` |
38 | | - --> $DIR/feature-gate-in_band_lifetimes.rs:55:27 |
39 | | - | |
40 | | -LL | fn any_lifetime() -> &'b u8 { &0 } |
41 | | - | ^^ undeclared lifetime |
42 | | - | |
43 | | - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
44 | | -help: consider introducing lifetime `'b` here |
45 | | - | |
46 | | -LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
47 | | - | ++++ |
48 | | -help: consider introducing lifetime `'b` here |
49 | | - | |
50 | | -LL | fn any_lifetime<'b>() -> &'b u8 { &0 } |
51 | | - | ++++ |
52 | | - |
53 | | -error[E0261]: use of undeclared lifetime name `'b` |
54 | | - --> $DIR/feature-gate-in_band_lifetimes.rs:57:27 |
55 | | - | |
56 | | -LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
57 | | - | ^^ undeclared lifetime |
58 | | - | |
59 | | - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
60 | | -help: consider introducing lifetime `'b` here |
61 | | - | |
62 | | -LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
63 | | - | ++++ |
64 | | -help: consider introducing lifetime `'b` here |
65 | | - | |
66 | | -LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
67 | | - | ++++ |
68 | | - |
69 | | -error[E0261]: use of undeclared lifetime name `'b` |
70 | | - --> $DIR/feature-gate-in_band_lifetimes.rs:57:40 |
71 | | - | |
72 | | -LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
73 | | - | ^^ undeclared lifetime |
74 | | - | |
75 | | - = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
76 | | -help: consider introducing lifetime `'b` here |
77 | | - | |
78 | | -LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
79 | | - | ++++ |
80 | | -help: consider introducing lifetime `'b` here |
81 | | - | |
82 | | -LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
83 | | - | ++++ |
84 | | - |
85 | 1 | error[E0261]: use of undeclared lifetime name `'x` |
86 | 2 | --> $DIR/feature-gate-in_band_lifetimes.rs:3:12 |
87 | 3 | | |
@@ -109,6 +25,8 @@ LL | impl<'a> X<'b> { |
109 | 25 | | - ^^ undeclared lifetime |
110 | 26 | | | |
111 | 27 | | help: consider introducing lifetime `'b` here: `'b,` |
| 28 | + | |
| 29 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
112 | 30 |
|
113 | 31 | error[E0261]: use of undeclared lifetime name `'b` |
114 | 32 | --> $DIR/feature-gate-in_band_lifetimes.rs:17:27 |
@@ -226,6 +144,90 @@ help: consider introducing lifetime `'b` here |
226 | 144 | LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8; |
227 | 145 | | ++++ |
228 | 146 |
|
| 147 | +error[E0261]: use of undeclared lifetime name `'a` |
| 148 | + --> $DIR/feature-gate-in_band_lifetimes.rs:50:14 |
| 149 | + | |
| 150 | +LL | impl MyTrait<'a> for Y<&'a u8> { |
| 151 | + | - ^^ undeclared lifetime |
| 152 | + | | |
| 153 | + | help: consider introducing lifetime `'a` here: `<'a>` |
| 154 | + | |
| 155 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 156 | + |
| 157 | +error[E0261]: use of undeclared lifetime name `'a` |
| 158 | + --> $DIR/feature-gate-in_band_lifetimes.rs:50:25 |
| 159 | + | |
| 160 | +LL | impl MyTrait<'a> for Y<&'a u8> { |
| 161 | + | - ^^ undeclared lifetime |
| 162 | + | | |
| 163 | + | help: consider introducing lifetime `'a` here: `<'a>` |
| 164 | + | |
| 165 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 166 | + |
| 167 | +error[E0261]: use of undeclared lifetime name `'a` |
| 168 | + --> $DIR/feature-gate-in_band_lifetimes.rs:53:31 |
| 169 | + | |
| 170 | +LL | fn my_lifetime(&self) -> &'a u8 { self.0 } |
| 171 | + | ^^ undeclared lifetime |
| 172 | + | |
| 173 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 174 | +help: consider introducing lifetime `'a` here |
| 175 | + | |
| 176 | +LL | impl<'a> MyTrait<'a> for Y<&'a u8> { |
| 177 | + | ++++ |
| 178 | +help: consider introducing lifetime `'a` here |
| 179 | + | |
| 180 | +LL | fn my_lifetime<'a>(&self) -> &'a u8 { self.0 } |
| 181 | + | ++++ |
| 182 | + |
| 183 | +error[E0261]: use of undeclared lifetime name `'b` |
| 184 | + --> $DIR/feature-gate-in_band_lifetimes.rs:55:27 |
| 185 | + | |
| 186 | +LL | fn any_lifetime() -> &'b u8 { &0 } |
| 187 | + | ^^ undeclared lifetime |
| 188 | + | |
| 189 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 190 | +help: consider introducing lifetime `'b` here |
| 191 | + | |
| 192 | +LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
| 193 | + | ++++ |
| 194 | +help: consider introducing lifetime `'b` here |
| 195 | + | |
| 196 | +LL | fn any_lifetime<'b>() -> &'b u8 { &0 } |
| 197 | + | ++++ |
| 198 | + |
| 199 | +error[E0261]: use of undeclared lifetime name `'b` |
| 200 | + --> $DIR/feature-gate-in_band_lifetimes.rs:57:27 |
| 201 | + | |
| 202 | +LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
| 203 | + | ^^ undeclared lifetime |
| 204 | + | |
| 205 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 206 | +help: consider introducing lifetime `'b` here |
| 207 | + | |
| 208 | +LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
| 209 | + | ++++ |
| 210 | +help: consider introducing lifetime `'b` here |
| 211 | + | |
| 212 | +LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
| 213 | + | ++++ |
| 214 | + |
| 215 | +error[E0261]: use of undeclared lifetime name `'b` |
| 216 | + --> $DIR/feature-gate-in_band_lifetimes.rs:57:40 |
| 217 | + | |
| 218 | +LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 } |
| 219 | + | ^^ undeclared lifetime |
| 220 | + | |
| 221 | + = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes |
| 222 | +help: consider introducing lifetime `'b` here |
| 223 | + | |
| 224 | +LL | impl<'b> MyTrait<'a> for Y<&'a u8> { |
| 225 | + | ++++ |
| 226 | +help: consider introducing lifetime `'b` here |
| 227 | + | |
| 228 | +LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 } |
| 229 | + | ++++ |
| 230 | + |
229 | 231 | error: aborting due to 17 previous errors |
230 | 232 |
|
231 | 233 | For more information about this error, try `rustc --explain E0261`. |
0 commit comments