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 `'b`
98 --> $DIR/feature-gate-in_band_lifetimes.rs:43:27
100 LL | fn any_lifetime() -> &'b u8;
101 | ^^ undeclared lifetime
103 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
104 help: consider introducing lifetime `'b` here
106 LL | trait MyTrait<'b, 'a> {
108 help: consider introducing lifetime `'b` here
110 LL | fn any_lifetime<'b>() -> &'b u8;
113 error[E0261]: use of undeclared lifetime name `'b`
114 --> $DIR/feature-gate-in_band_lifetimes.rs:45:27
116 LL | fn borrowed_lifetime(&'b self) -> &'b u8;
117 | ^^ undeclared lifetime
119 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
120 help: consider introducing lifetime `'b` here
122 LL | trait MyTrait<'b, 'a> {
124 help: consider introducing lifetime `'b` here
126 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
129 error[E0261]: use of undeclared lifetime name `'b`
130 --> $DIR/feature-gate-in_band_lifetimes.rs:45:40
132 LL | fn borrowed_lifetime(&'b self) -> &'b u8;
133 | ^^ undeclared lifetime
135 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
136 help: consider introducing lifetime `'b` here
138 LL | trait MyTrait<'b, 'a> {
140 help: consider introducing lifetime `'b` here
142 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
145 error[E0261]: use of undeclared lifetime name `'a`
146 --> $DIR/feature-gate-in_band_lifetimes.rs:50:14
148 LL | impl MyTrait<'a> for Y<&'a u8> {
149 | - ^^ undeclared lifetime
151 | help: consider introducing lifetime `'a` here: `<'a>`
153 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
155 error[E0261]: use of undeclared lifetime name `'a`
156 --> $DIR/feature-gate-in_band_lifetimes.rs:50:25
158 LL | impl MyTrait<'a> for Y<&'a u8> {
159 | - ^^ undeclared lifetime
161 | help: consider introducing lifetime `'a` here: `<'a>`
163 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
165 error[E0261]: use of undeclared lifetime name `'a`
166 --> $DIR/feature-gate-in_band_lifetimes.rs:53:31
168 LL | fn my_lifetime(&self) -> &'a 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 `'a` here
174 LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
176 help: consider introducing lifetime `'a` here
178 LL | fn my_lifetime<'a>(&self) -> &'a u8 { self.0 }
181 error[E0261]: use of undeclared lifetime name `'b`
182 --> $DIR/feature-gate-in_band_lifetimes.rs:55:27
184 LL | fn any_lifetime() -> &'b u8 { &0 }
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 | impl<'b> MyTrait<'a> for Y<&'a u8> {
192 help: consider introducing lifetime `'b` here
194 LL | fn any_lifetime<'b>() -> &'b u8 { &0 }
197 error[E0261]: use of undeclared lifetime name `'b`
198 --> $DIR/feature-gate-in_band_lifetimes.rs:57:27
200 LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
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 | impl<'b> MyTrait<'a> for Y<&'a u8> {
208 help: consider introducing lifetime `'b` here
210 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
213 error[E0261]: use of undeclared lifetime name `'b`
214 --> $DIR/feature-gate-in_band_lifetimes.rs:57:40
216 LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
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 | impl<'b> MyTrait<'a> for Y<&'a u8> {
224 help: consider introducing lifetime `'b` here
226 LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
229 error: aborting due to 17 previous errors
231 For more information about this error, try `rustc --explain E0261`.