]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-in_band_lifetimes.stderr
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[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 `'b`
98   --> $DIR/feature-gate-in_band_lifetimes.rs:43:27
99    |
100 LL |     fn any_lifetime() -> &'b u8;
101    |                           ^^ undeclared lifetime
102    |
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
105    |
106 LL | trait MyTrait<'b, 'a> {
107    |               ^^^
108 help: consider introducing lifetime `'b` here
109    |
110 LL |     fn any_lifetime<'b>() -> &'b u8;
111    |                    ^^^^
112
113 error[E0261]: use of undeclared lifetime name `'b`
114   --> $DIR/feature-gate-in_band_lifetimes.rs:45:27
115    |
116 LL |     fn borrowed_lifetime(&'b self) -> &'b u8;
117    |                           ^^ undeclared lifetime
118    |
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
121    |
122 LL | trait MyTrait<'b, 'a> {
123    |               ^^^
124 help: consider introducing lifetime `'b` here
125    |
126 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
127    |                         ^^^^
128
129 error[E0261]: use of undeclared lifetime name `'b`
130   --> $DIR/feature-gate-in_band_lifetimes.rs:45:40
131    |
132 LL |     fn borrowed_lifetime(&'b self) -> &'b u8;
133    |                                        ^^ undeclared lifetime
134    |
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
137    |
138 LL | trait MyTrait<'b, 'a> {
139    |               ^^^
140 help: consider introducing lifetime `'b` here
141    |
142 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
143    |                         ^^^^
144
145 error[E0261]: use of undeclared lifetime name `'a`
146   --> $DIR/feature-gate-in_band_lifetimes.rs:50:14
147    |
148 LL | impl MyTrait<'a> for Y<&'a u8> {
149    |     -        ^^ undeclared lifetime
150    |     |
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
154
155 error[E0261]: use of undeclared lifetime name `'a`
156   --> $DIR/feature-gate-in_band_lifetimes.rs:50:25
157    |
158 LL | impl MyTrait<'a> for Y<&'a u8> {
159    |     -                   ^^ undeclared lifetime
160    |     |
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
164
165 error[E0261]: use of undeclared lifetime name `'a`
166   --> $DIR/feature-gate-in_band_lifetimes.rs:53:31
167    |
168 LL |     fn my_lifetime(&self) -> &'a 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 `'a` here
173    |
174 LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
175    |     ^^^^
176 help: consider introducing lifetime `'a` here
177    |
178 LL |     fn my_lifetime<'a>(&self) -> &'a u8 { self.0 }
179    |                   ^^^^
180
181 error[E0261]: use of undeclared lifetime name `'b`
182   --> $DIR/feature-gate-in_band_lifetimes.rs:55:27
183    |
184 LL |     fn any_lifetime() -> &'b u8 { &0 }
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 | impl<'b> MyTrait<'a> for Y<&'a u8> {
191    |     ^^^^
192 help: consider introducing lifetime `'b` here
193    |
194 LL |     fn any_lifetime<'b>() -> &'b u8 { &0 }
195    |                    ^^^^
196
197 error[E0261]: use of undeclared lifetime name `'b`
198   --> $DIR/feature-gate-in_band_lifetimes.rs:57:27
199    |
200 LL |     fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
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 | impl<'b> MyTrait<'a> for Y<&'a u8> {
207    |     ^^^^
208 help: consider introducing lifetime `'b` here
209    |
210 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
211    |                         ^^^^
212
213 error[E0261]: use of undeclared lifetime name `'b`
214   --> $DIR/feature-gate-in_band_lifetimes.rs:57:40
215    |
216 LL |     fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
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 | impl<'b> MyTrait<'a> for Y<&'a u8> {
223    |     ^^^^
224 help: consider introducing lifetime `'b` here
225    |
226 LL |     fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
227    |                         ^^^^
228
229 error: aborting due to 17 previous errors
230
231 For more information about this error, try `rustc --explain E0261`.