@@ -5,6 +5,8 @@ LL | fn foo(x: &'x u8) -> &'x u8 { x }
5
5
| - ^^ undeclared lifetime
6
6
| |
7
7
| 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
8
10
9
11
error[E0261]: use of undeclared lifetime name `'x`
10
12
--> $DIR/feature-gate-in_band_lifetimes.rs:3:23
@@ -13,6 +15,8 @@ LL | fn foo(x: &'x u8) -> &'x u8 { x }
13
15
| - ^^ undeclared lifetime
14
16
| |
15
17
| 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
16
20
17
21
error[E0261]: use of undeclared lifetime name `'b`
18
22
--> $DIR/feature-gate-in_band_lifetimes.rs:15:12
@@ -28,6 +32,7 @@ error[E0261]: use of undeclared lifetime name `'b`
28
32
LL | fn inner_2(&self) -> &'b u8 {
29
33
| ^^ undeclared lifetime
30
34
|
35
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
31
36
help: consider introducing lifetime `'b` here
32
37
|
33
38
LL | impl<'b, 'a> X<'b> {
@@ -44,13 +49,16 @@ LL | impl X<'b> {
44
49
| - ^^ undeclared lifetime
45
50
| |
46
51
| 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
47
54
48
55
error[E0261]: use of undeclared lifetime name `'b`
49
56
--> $DIR/feature-gate-in_band_lifetimes.rs:25:27
50
57
|
51
58
LL | fn inner_3(&self) -> &'b u8 {
52
59
| ^^ undeclared lifetime
53
60
|
61
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
54
62
help: consider introducing lifetime `'b` here
55
63
|
56
64
LL | impl<'b> X<'b> {
@@ -67,13 +75,16 @@ LL | impl Y<&'a u8> {
67
75
| - ^^ undeclared lifetime
68
76
| |
69
77
| 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
70
80
71
81
error[E0261]: use of undeclared lifetime name `'a`
72
82
--> $DIR/feature-gate-in_band_lifetimes.rs:35:25
73
83
|
74
84
LL | fn inner(&self) -> &'a u8 {
75
85
| ^^ undeclared lifetime
76
86
|
87
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
77
88
help: consider introducing lifetime `'a` here
78
89
|
79
90
LL | impl<'a> Y<&'a u8> {
@@ -89,6 +100,7 @@ error[E0261]: use of undeclared lifetime name `'b`
89
100
LL | fn any_lifetime() -> &'b u8;
90
101
| ^^ undeclared lifetime
91
102
|
103
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
92
104
help: consider introducing lifetime `'b` here
93
105
|
94
106
LL | trait MyTrait<'b, 'a> {
@@ -104,6 +116,7 @@ error[E0261]: use of undeclared lifetime name `'b`
104
116
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
105
117
| ^^ undeclared lifetime
106
118
|
119
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
107
120
help: consider introducing lifetime `'b` here
108
121
|
109
122
LL | trait MyTrait<'b, 'a> {
@@ -119,6 +132,7 @@ error[E0261]: use of undeclared lifetime name `'b`
119
132
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
120
133
| ^^ undeclared lifetime
121
134
|
135
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
122
136
help: consider introducing lifetime `'b` here
123
137
|
124
138
LL | trait MyTrait<'b, 'a> {
@@ -135,6 +149,8 @@ LL | impl MyTrait<'a> for Y<&'a u8> {
135
149
| - ^^ undeclared lifetime
136
150
| |
137
151
| 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
138
154
139
155
error[E0261]: use of undeclared lifetime name `'a`
140
156
--> $DIR/feature-gate-in_band_lifetimes.rs:50:25
@@ -143,13 +159,16 @@ LL | impl MyTrait<'a> for Y<&'a u8> {
143
159
| - ^^ undeclared lifetime
144
160
| |
145
161
| 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
146
164
147
165
error[E0261]: use of undeclared lifetime name `'a`
148
166
--> $DIR/feature-gate-in_band_lifetimes.rs:53:31
149
167
|
150
168
LL | fn my_lifetime(&self) -> &'a u8 { self.0 }
151
169
| ^^ undeclared lifetime
152
170
|
171
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
153
172
help: consider introducing lifetime `'a` here
154
173
|
155
174
LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
@@ -165,6 +184,7 @@ error[E0261]: use of undeclared lifetime name `'b`
165
184
LL | fn any_lifetime() -> &'b u8 { &0 }
166
185
| ^^ undeclared lifetime
167
186
|
187
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
168
188
help: consider introducing lifetime `'b` here
169
189
|
170
190
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
@@ -180,6 +200,7 @@ error[E0261]: use of undeclared lifetime name `'b`
180
200
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
181
201
| ^^ undeclared lifetime
182
202
|
203
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
183
204
help: consider introducing lifetime `'b` here
184
205
|
185
206
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
@@ -195,6 +216,7 @@ error[E0261]: use of undeclared lifetime name `'b`
195
216
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
196
217
| ^^ undeclared lifetime
197
218
|
219
+ = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
198
220
help: consider introducing lifetime `'b` here
199
221
|
200
222
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
0 commit comments