@@ -5,6 +5,8 @@ LL | fn foo(x: &'x u8) -> &'x u8 { x }
55 | - ^^ undeclared lifetime
66 | |
77 | help: consider introducing lifetime `'x` here: `<'x>`
8+ |
9+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
810
911error[E0261]: use of undeclared lifetime name `'x`
1012 --> $DIR/feature-gate-in_band_lifetimes.rs:3:23
@@ -13,6 +15,8 @@ LL | fn foo(x: &'x u8) -> &'x u8 { x }
1315 | - ^^ undeclared lifetime
1416 | |
1517 | help: consider introducing lifetime `'x` here: `<'x>`
18+ |
19+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
1620
1721error[E0261]: use of undeclared lifetime name `'b`
1822 --> $DIR/feature-gate-in_band_lifetimes.rs:15:12
@@ -28,6 +32,7 @@ error[E0261]: use of undeclared lifetime name `'b`
2832LL | fn inner_2(&self) -> &'b u8 {
2933 | ^^ undeclared lifetime
3034 |
35+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
3136help: consider introducing lifetime `'b` here
3237 |
3338LL | impl<'b, 'a> X<'b> {
@@ -44,13 +49,16 @@ LL | impl X<'b> {
4449 | - ^^ undeclared lifetime
4550 | |
4651 | help: consider introducing lifetime `'b` here: `<'b>`
52+ |
53+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
4754
4855error[E0261]: use of undeclared lifetime name `'b`
4956 --> $DIR/feature-gate-in_band_lifetimes.rs:25:27
5057 |
5158LL | fn inner_3(&self) -> &'b u8 {
5259 | ^^ undeclared lifetime
5360 |
61+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
5462help: consider introducing lifetime `'b` here
5563 |
5664LL | impl<'b> X<'b> {
@@ -67,13 +75,16 @@ LL | impl Y<&'a u8> {
6775 | - ^^ undeclared lifetime
6876 | |
6977 | help: consider introducing lifetime `'a` here: `<'a>`
78+ |
79+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
7080
7181error[E0261]: use of undeclared lifetime name `'a`
7282 --> $DIR/feature-gate-in_band_lifetimes.rs:35:25
7383 |
7484LL | fn inner(&self) -> &'a u8 {
7585 | ^^ undeclared lifetime
7686 |
87+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
7788help: consider introducing lifetime `'a` here
7889 |
7990LL | impl<'a> Y<&'a u8> {
@@ -89,6 +100,7 @@ error[E0261]: use of undeclared lifetime name `'b`
89100LL | fn any_lifetime() -> &'b u8;
90101 | ^^ undeclared lifetime
91102 |
103+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
92104help: consider introducing lifetime `'b` here
93105 |
94106LL | trait MyTrait<'b, 'a> {
@@ -104,6 +116,7 @@ error[E0261]: use of undeclared lifetime name `'b`
104116LL | fn borrowed_lifetime(&'b self) -> &'b u8;
105117 | ^^ undeclared lifetime
106118 |
119+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
107120help: consider introducing lifetime `'b` here
108121 |
109122LL | trait MyTrait<'b, 'a> {
@@ -119,6 +132,7 @@ error[E0261]: use of undeclared lifetime name `'b`
119132LL | fn borrowed_lifetime(&'b self) -> &'b u8;
120133 | ^^ undeclared lifetime
121134 |
135+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
122136help: consider introducing lifetime `'b` here
123137 |
124138LL | trait MyTrait<'b, 'a> {
@@ -135,6 +149,8 @@ LL | impl MyTrait<'a> for Y<&'a u8> {
135149 | - ^^ undeclared lifetime
136150 | |
137151 | help: consider introducing lifetime `'a` here: `<'a>`
152+ |
153+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
138154
139155error[E0261]: use of undeclared lifetime name `'a`
140156 --> $DIR/feature-gate-in_band_lifetimes.rs:50:25
@@ -143,13 +159,16 @@ LL | impl MyTrait<'a> for Y<&'a u8> {
143159 | - ^^ undeclared lifetime
144160 | |
145161 | help: consider introducing lifetime `'a` here: `<'a>`
162+ |
163+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
146164
147165error[E0261]: use of undeclared lifetime name `'a`
148166 --> $DIR/feature-gate-in_band_lifetimes.rs:53:31
149167 |
150168LL | fn my_lifetime(&self) -> &'a u8 { self.0 }
151169 | ^^ undeclared lifetime
152170 |
171+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
153172help: consider introducing lifetime `'a` here
154173 |
155174LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
@@ -165,6 +184,7 @@ error[E0261]: use of undeclared lifetime name `'b`
165184LL | fn any_lifetime() -> &'b u8 { &0 }
166185 | ^^ undeclared lifetime
167186 |
187+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
168188help: consider introducing lifetime `'b` here
169189 |
170190LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
@@ -180,6 +200,7 @@ error[E0261]: use of undeclared lifetime name `'b`
180200LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
181201 | ^^ undeclared lifetime
182202 |
203+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
183204help: consider introducing lifetime `'b` here
184205 |
185206LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
@@ -195,6 +216,7 @@ error[E0261]: use of undeclared lifetime name `'b`
195216LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
196217 | ^^ undeclared lifetime
197218 |
219+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
198220help: consider introducing lifetime `'b` here
199221 |
200222LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
0 commit comments