1 error[E0261]: use of undeclared lifetime name `'x`
2 --> $DIR/feature-gate-in_band_lifetimes.rs:3:12
4 LL | fn foo(x: &'x u8) -> &'x u8 { x }
5 | - ^^ undeclared lifetime
7 | help: consider introducing lifetime `'x` here: `<'x>`
9 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
11 error[E0261]: use of undeclared lifetime name `'x`
12 --> $DIR/feature-gate-in_band_lifetimes.rs:3:23
14 LL | fn foo(x: &'x u8) -> &'x u8 { x }
15 | - ^^ undeclared lifetime
17 | help: consider introducing lifetime `'x` here: `<'x>`
19 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
21 error[E0261]: use of undeclared lifetime name `'b`
22 --> $DIR/feature-gate-in_band_lifetimes.rs:15:12
25 | - ^^ undeclared lifetime
27 | help: consider introducing lifetime `'b` here: `'b,`
29 error[E0261]: use of undeclared lifetime name `'b`
30 --> $DIR/feature-gate-in_band_lifetimes.rs:17:27
32 LL | fn inner_2(&self) -> &'b u8 {
33 | ^^ undeclared lifetime
35 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
36 help: consider introducing lifetime `'b` here
38 LL | impl<'b, 'a> X<'b> {
40 help: consider introducing lifetime `'b` here
42 LL | fn inner_2<'b>(&self) -> &'b u8 {
45 error[E0261]: use of undeclared lifetime name `'b`
46 --> $DIR/feature-gate-in_band_lifetimes.rs:23:8
49 | - ^^ undeclared lifetime
51 | help: consider introducing lifetime `'b` here: `<'b>`
53 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
55 error[E0261]: use of undeclared lifetime name `'b`
56 --> $DIR/feature-gate-in_band_lifetimes.rs:25:27
58 LL | fn inner_3(&self) -> &'b u8 {
59 | ^^ undeclared lifetime
61 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
62 help: consider introducing lifetime `'b` here
66 help: consider introducing lifetime `'b` here
68 LL | fn inner_3<'b>(&self) -> &'b u8 {
71 error[E0261]: use of undeclared lifetime name `'a`
72 --> $DIR/feature-gate-in_band_lifetimes.rs:33:9
75 | - ^^ undeclared lifetime
77 | help: consider introducing lifetime `'a` here: `<'a>`
79 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
81 error[E0261]: use of undeclared lifetime name `'a`
82 --> $DIR/feature-gate-in_band_lifetimes.rs:35:25
84 LL | fn inner(&self) -> &'a u8 {
85 | ^^ undeclared lifetime
87 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
88 help: consider introducing lifetime `'a` here
90 LL | impl<'a> Y<&'a u8> {
92 help: consider introducing lifetime `'a` here
94 LL | fn inner<'a>(&self) -> &'a u8 {
97 error[E0261]: use of undeclared lifetime name `'a`
98 --> $DIR/feature-gate-in_band_lifetimes.rs:50:14
100 LL | impl MyTrait<'a> for Y<&'a u8> {
101 | - ^^ undeclared lifetime
103 | help: consider introducing lifetime `'a` here: `<'a>`
105 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
107 error[E0261]: use of undeclared lifetime name `'a`
108 --> $DIR/feature-gate-in_band_lifetimes.rs:50:25
110 LL | impl MyTrait<'a> for Y<&'a u8> {
111 | - ^^ undeclared lifetime
113 | help: consider introducing lifetime `'a` here: `<'a>`
115 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
117 error[E0261]: use of undeclared lifetime name `'a`
118 --> $DIR/feature-gate-in_band_lifetimes.rs:53:31
120 LL | fn my_lifetime(&self) -> &'a u8 { self.0 }
121 | ^^ undeclared lifetime
123 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
124 help: consider introducing lifetime `'a` here
126 LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
128 help: consider introducing lifetime `'a` here
130 LL | fn my_lifetime<'a>(&self) -> &'a u8 { self.0 }
133 error[E0261]: use of undeclared lifetime name `'b`
134 --> $DIR/feature-gate-in_band_lifetimes.rs:55:27
136 LL | fn any_lifetime() -> &'b u8 { &0 }
137 | ^^ undeclared lifetime
139 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
140 help: consider introducing lifetime `'b` here
142 LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
144 help: consider introducing lifetime `'b` here
146 LL | fn any_lifetime<'b>() -> &'b u8 { &0 }
149 error[E0261]: use of undeclared lifetime name `'b`
150 --> $DIR/feature-gate-in_band_lifetimes.rs:57:27
152 LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
153 | ^^ undeclared lifetime
155 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
156 help: consider introducing lifetime `'b` here
158 LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
160 help: consider introducing lifetime `'b` here
162 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
165 error[E0261]: use of undeclared lifetime name `'b`
166 --> $DIR/feature-gate-in_band_lifetimes.rs:57:40
168 LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
169 | ^^ undeclared lifetime
171 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
172 help: consider introducing lifetime `'b` here
174 LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
176 help: consider introducing lifetime `'b` here
178 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
181 error[E0261]: use of undeclared lifetime name `'b`
182 --> $DIR/feature-gate-in_band_lifetimes.rs:43:27
184 LL | fn any_lifetime() -> &'b u8;
185 | ^^ undeclared lifetime
187 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
188 help: consider introducing lifetime `'b` here
190 LL | trait MyTrait<'b, 'a> {
192 help: consider introducing lifetime `'b` here
194 LL | fn any_lifetime<'b>() -> &'b u8;
197 error[E0261]: use of undeclared lifetime name `'b`
198 --> $DIR/feature-gate-in_band_lifetimes.rs:45:27
200 LL | fn borrowed_lifetime(&'b self) -> &'b u8;
201 | ^^ undeclared lifetime
203 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
204 help: consider introducing lifetime `'b` here
206 LL | trait MyTrait<'b, 'a> {
208 help: consider introducing lifetime `'b` here
210 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
213 error[E0261]: use of undeclared lifetime name `'b`
214 --> $DIR/feature-gate-in_band_lifetimes.rs:45:40
216 LL | fn borrowed_lifetime(&'b self) -> &'b u8;
217 | ^^ undeclared lifetime
219 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
220 help: consider introducing lifetime `'b` here
222 LL | trait MyTrait<'b, 'a> {
224 help: consider introducing lifetime `'b` here
226 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
229 error: aborting due to 17 previous errors
231 For more information about this error, try `rustc --explain E0261`.