]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-in_band_lifetimes.stderr
Rollup merge of #94068 - eholk:drop-track-field-assign, r=tmandry
[rust.git] / src / test / ui / feature-gates / feature-gate-in_band_lifetimes.stderr
1 error[E0261]: use of undeclared lifetime name `'x`
2   --> $DIR/feature-gate-in_band_lifetimes.rs:3:12
3    |
4 LL | fn foo(x: &'x u8) -> &'x u8 { x }
5    |       -    ^^ undeclared lifetime
6    |       |
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
10
11 error[E0261]: use of undeclared lifetime name `'x`
12   --> $DIR/feature-gate-in_band_lifetimes.rs:3:23
13    |
14 LL | fn foo(x: &'x u8) -> &'x u8 { x }
15    |       -               ^^ undeclared lifetime
16    |       |
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
20
21 error[E0261]: use of undeclared lifetime name `'b`
22   --> $DIR/feature-gate-in_band_lifetimes.rs:15:12
23    |
24 LL | impl<'a> X<'b> {
25    |      -     ^^ undeclared lifetime
26    |      |
27    |      help: consider introducing lifetime `'b` here: `'b,`
28
29 error[E0261]: use of undeclared lifetime name `'b`
30   --> $DIR/feature-gate-in_band_lifetimes.rs:17:27
31    |
32 LL |     fn inner_2(&self) -> &'b u8 {
33    |                           ^^ undeclared lifetime
34    |
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
37    |
38 LL | impl<'b, 'a> X<'b> {
39    |      +++
40 help: consider introducing lifetime `'b` here
41    |
42 LL |     fn inner_2<'b>(&self) -> &'b u8 {
43    |               ++++
44
45 error[E0261]: use of undeclared lifetime name `'b`
46   --> $DIR/feature-gate-in_band_lifetimes.rs:23:8
47    |
48 LL | impl X<'b> {
49    |     -  ^^ undeclared lifetime
50    |     |
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
54
55 error[E0261]: use of undeclared lifetime name `'b`
56   --> $DIR/feature-gate-in_band_lifetimes.rs:25:27
57    |
58 LL |     fn inner_3(&self) -> &'b u8 {
59    |                           ^^ undeclared lifetime
60    |
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
63    |
64 LL | impl<'b> X<'b> {
65    |     ++++
66 help: consider introducing lifetime `'b` here
67    |
68 LL |     fn inner_3<'b>(&self) -> &'b u8 {
69    |               ++++
70
71 error[E0261]: use of undeclared lifetime name `'a`
72   --> $DIR/feature-gate-in_band_lifetimes.rs:33:9
73    |
74 LL | impl Y<&'a u8> {
75    |     -   ^^ undeclared lifetime
76    |     |
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
80
81 error[E0261]: use of undeclared lifetime name `'a`
82   --> $DIR/feature-gate-in_band_lifetimes.rs:35:25
83    |
84 LL |     fn inner(&self) -> &'a u8 {
85    |                         ^^ undeclared lifetime
86    |
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
89    |
90 LL | impl<'a> Y<&'a u8> {
91    |     ++++
92 help: consider introducing lifetime `'a` here
93    |
94 LL |     fn inner<'a>(&self) -> &'a u8 {
95    |             ++++
96
97 error[E0261]: use of undeclared lifetime name `'a`
98   --> $DIR/feature-gate-in_band_lifetimes.rs:50:14
99    |
100 LL | impl MyTrait<'a> for Y<&'a u8> {
101    |     -        ^^ undeclared lifetime
102    |     |
103    |     help: consider introducing lifetime `'a` here: `<'a>`
104    |
105    = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
106
107 error[E0261]: use of undeclared lifetime name `'a`
108   --> $DIR/feature-gate-in_band_lifetimes.rs:50:25
109    |
110 LL | impl MyTrait<'a> for Y<&'a u8> {
111    |     -                   ^^ undeclared lifetime
112    |     |
113    |     help: consider introducing lifetime `'a` here: `<'a>`
114    |
115    = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
116
117 error[E0261]: use of undeclared lifetime name `'a`
118   --> $DIR/feature-gate-in_band_lifetimes.rs:53:31
119    |
120 LL |     fn my_lifetime(&self) -> &'a u8 { self.0 }
121    |                               ^^ undeclared lifetime
122    |
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
125    |
126 LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
127    |     ++++
128 help: consider introducing lifetime `'a` here
129    |
130 LL |     fn my_lifetime<'a>(&self) -> &'a u8 { self.0 }
131    |                   ++++
132
133 error[E0261]: use of undeclared lifetime name `'b`
134   --> $DIR/feature-gate-in_band_lifetimes.rs:55:27
135    |
136 LL |     fn any_lifetime() -> &'b u8 { &0 }
137    |                           ^^ undeclared lifetime
138    |
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
141    |
142 LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
143    |     ++++
144 help: consider introducing lifetime `'b` here
145    |
146 LL |     fn any_lifetime<'b>() -> &'b u8 { &0 }
147    |                    ++++
148
149 error[E0261]: use of undeclared lifetime name `'b`
150   --> $DIR/feature-gate-in_band_lifetimes.rs:57:27
151    |
152 LL |     fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
153    |                           ^^ undeclared lifetime
154    |
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
157    |
158 LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
159    |     ++++
160 help: consider introducing lifetime `'b` here
161    |
162 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
163    |                         ++++
164
165 error[E0261]: use of undeclared lifetime name `'b`
166   --> $DIR/feature-gate-in_band_lifetimes.rs:57:40
167    |
168 LL |     fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
169    |                                        ^^ undeclared lifetime
170    |
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
173    |
174 LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
175    |     ++++
176 help: consider introducing lifetime `'b` here
177    |
178 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
179    |                         ++++
180
181 error[E0261]: use of undeclared lifetime name `'b`
182   --> $DIR/feature-gate-in_band_lifetimes.rs:43:27
183    |
184 LL |     fn any_lifetime() -> &'b u8;
185    |                           ^^ undeclared lifetime
186    |
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
189    |
190 LL | trait MyTrait<'b, 'a> {
191    |               +++
192 help: consider introducing lifetime `'b` here
193    |
194 LL |     fn any_lifetime<'b>() -> &'b u8;
195    |                    ++++
196
197 error[E0261]: use of undeclared lifetime name `'b`
198   --> $DIR/feature-gate-in_band_lifetimes.rs:45:27
199    |
200 LL |     fn borrowed_lifetime(&'b self) -> &'b u8;
201    |                           ^^ undeclared lifetime
202    |
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
205    |
206 LL | trait MyTrait<'b, 'a> {
207    |               +++
208 help: consider introducing lifetime `'b` here
209    |
210 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
211    |                         ++++
212
213 error[E0261]: use of undeclared lifetime name `'b`
214   --> $DIR/feature-gate-in_band_lifetimes.rs:45:40
215    |
216 LL |     fn borrowed_lifetime(&'b self) -> &'b u8;
217    |                                        ^^ undeclared lifetime
218    |
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
221    |
222 LL | trait MyTrait<'b, 'a> {
223    |               +++
224 help: consider introducing lifetime `'b` here
225    |
226 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
227    |                         ++++
228
229 error: aborting due to 17 previous errors
230
231 For more information about this error, try `rustc --explain E0261`.