]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-in_band_lifetimes.stderr
New upstream version 1.42.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-in_band_lifetimes.stderr
CommitLineData
ff7c6d11 1error[E0261]: use of undeclared lifetime name `'x`
0731742a 2 --> $DIR/feature-gate-in_band_lifetimes.rs:3:12
ff7c6d11 3 |
0531ce1d 4LL | fn foo(x: &'x u8) -> &'x u8 { x }
dfeec247
XL
5 | - ^^ undeclared lifetime
6 | |
7 | help: consider introducing lifetime `'x` here: `<'x>`
ff7c6d11
XL
8
9error[E0261]: use of undeclared lifetime name `'x`
0731742a 10 --> $DIR/feature-gate-in_band_lifetimes.rs:3:23
ff7c6d11 11 |
0531ce1d 12LL | fn foo(x: &'x u8) -> &'x u8 { x }
dfeec247
XL
13 | - ^^ undeclared lifetime
14 | |
15 | help: consider introducing lifetime `'x` here: `<'x>`
ff7c6d11
XL
16
17error[E0261]: use of undeclared lifetime name `'b`
0731742a 18 --> $DIR/feature-gate-in_band_lifetimes.rs:15:12
ff7c6d11 19 |
0531ce1d 20LL | impl<'a> X<'b> {
dfeec247
XL
21 | - ^^ undeclared lifetime
22 | |
23 | help: consider introducing lifetime `'b` here: `'b,`
ff7c6d11
XL
24
25error[E0261]: use of undeclared lifetime name `'b`
0731742a 26 --> $DIR/feature-gate-in_band_lifetimes.rs:17:27
ff7c6d11 27 |
0531ce1d 28LL | fn inner_2(&self) -> &'b u8 {
ff7c6d11 29 | ^^ undeclared lifetime
dfeec247
XL
30 |
31help: consider introducing lifetime `'b` here
32 |
33LL | impl<'b, 'a> X<'b> {
34 | ^^^
35help: consider introducing lifetime `'b` here
36 |
37LL | fn inner_2<'b>(&self) -> &'b u8 {
38 | ^^^^
ff7c6d11
XL
39
40error[E0261]: use of undeclared lifetime name `'b`
0731742a 41 --> $DIR/feature-gate-in_band_lifetimes.rs:23:8
ff7c6d11 42 |
0531ce1d 43LL | impl X<'b> {
dfeec247
XL
44 | - ^^ undeclared lifetime
45 | |
46 | help: consider introducing lifetime `'b` here: `<'b>`
ff7c6d11
XL
47
48error[E0261]: use of undeclared lifetime name `'b`
0731742a 49 --> $DIR/feature-gate-in_band_lifetimes.rs:25:27
ff7c6d11 50 |
0531ce1d 51LL | fn inner_3(&self) -> &'b u8 {
ff7c6d11 52 | ^^ undeclared lifetime
dfeec247
XL
53 |
54help: consider introducing lifetime `'b` here
55 |
56LL | impl<'b> X<'b> {
57 | ^^^^
58help: consider introducing lifetime `'b` here
59 |
60LL | fn inner_3<'b>(&self) -> &'b u8 {
61 | ^^^^
ff7c6d11
XL
62
63error[E0261]: use of undeclared lifetime name `'a`
0731742a 64 --> $DIR/feature-gate-in_band_lifetimes.rs:33:9
ff7c6d11 65 |
0531ce1d 66LL | impl Y<&'a u8> {
dfeec247
XL
67 | - ^^ undeclared lifetime
68 | |
69 | help: consider introducing lifetime `'a` here: `<'a>`
ff7c6d11
XL
70
71error[E0261]: use of undeclared lifetime name `'a`
0731742a 72 --> $DIR/feature-gate-in_band_lifetimes.rs:35:25
ff7c6d11 73 |
0531ce1d 74LL | fn inner(&self) -> &'a u8 {
ff7c6d11 75 | ^^ undeclared lifetime
dfeec247
XL
76 |
77help: consider introducing lifetime `'a` here
78 |
79LL | impl<'a> Y<&'a u8> {
80 | ^^^^
81help: consider introducing lifetime `'a` here
82 |
83LL | fn inner<'a>(&self) -> &'a u8 {
84 | ^^^^
ff7c6d11
XL
85
86error[E0261]: use of undeclared lifetime name `'b`
0731742a 87 --> $DIR/feature-gate-in_band_lifetimes.rs:43:27
ff7c6d11 88 |
0531ce1d 89LL | fn any_lifetime() -> &'b u8;
ff7c6d11 90 | ^^ undeclared lifetime
dfeec247
XL
91 |
92help: consider introducing lifetime `'b` here
93 |
94LL | trait MyTrait<'b, 'a> {
95 | ^^^
96help: consider introducing lifetime `'b` here
97 |
98LL | fn any_lifetime<'b>() -> &'b u8;
99 | ^^^^
ff7c6d11
XL
100
101error[E0261]: use of undeclared lifetime name `'b`
0731742a 102 --> $DIR/feature-gate-in_band_lifetimes.rs:45:27
ff7c6d11 103 |
0531ce1d 104LL | fn borrowed_lifetime(&'b self) -> &'b u8;
ff7c6d11 105 | ^^ undeclared lifetime
dfeec247
XL
106 |
107help: consider introducing lifetime `'b` here
108 |
109LL | trait MyTrait<'b, 'a> {
110 | ^^^
111help: consider introducing lifetime `'b` here
112 |
113LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
114 | ^^^^
ff7c6d11
XL
115
116error[E0261]: use of undeclared lifetime name `'b`
0731742a 117 --> $DIR/feature-gate-in_band_lifetimes.rs:45:40
ff7c6d11 118 |
0531ce1d 119LL | fn borrowed_lifetime(&'b self) -> &'b u8;
ff7c6d11 120 | ^^ undeclared lifetime
dfeec247
XL
121 |
122help: consider introducing lifetime `'b` here
123 |
124LL | trait MyTrait<'b, 'a> {
125 | ^^^
126help: consider introducing lifetime `'b` here
127 |
128LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8;
129 | ^^^^
ff7c6d11
XL
130
131error[E0261]: use of undeclared lifetime name `'a`
0731742a 132 --> $DIR/feature-gate-in_band_lifetimes.rs:50:14
ff7c6d11 133 |
0531ce1d 134LL | impl MyTrait<'a> for Y<&'a u8> {
dfeec247
XL
135 | - ^^ undeclared lifetime
136 | |
137 | help: consider introducing lifetime `'a` here: `<'a>`
ff7c6d11
XL
138
139error[E0261]: use of undeclared lifetime name `'a`
0731742a 140 --> $DIR/feature-gate-in_band_lifetimes.rs:50:25
ff7c6d11 141 |
0531ce1d 142LL | impl MyTrait<'a> for Y<&'a u8> {
dfeec247
XL
143 | - ^^ undeclared lifetime
144 | |
145 | help: consider introducing lifetime `'a` here: `<'a>`
ff7c6d11
XL
146
147error[E0261]: use of undeclared lifetime name `'a`
0731742a 148 --> $DIR/feature-gate-in_band_lifetimes.rs:53:31
ff7c6d11 149 |
0531ce1d 150LL | fn my_lifetime(&self) -> &'a u8 { self.0 }
ff7c6d11 151 | ^^ undeclared lifetime
dfeec247
XL
152 |
153help: consider introducing lifetime `'a` here
154 |
155LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
156 | ^^^^
157help: consider introducing lifetime `'a` here
158 |
159LL | fn my_lifetime<'a>(&self) -> &'a u8 { self.0 }
160 | ^^^^
ff7c6d11
XL
161
162error[E0261]: use of undeclared lifetime name `'b`
0731742a 163 --> $DIR/feature-gate-in_band_lifetimes.rs:55:27
ff7c6d11 164 |
0531ce1d 165LL | fn any_lifetime() -> &'b u8 { &0 }
ff7c6d11 166 | ^^ undeclared lifetime
dfeec247
XL
167 |
168help: consider introducing lifetime `'b` here
169 |
170LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
171 | ^^^^
172help: consider introducing lifetime `'b` here
173 |
174LL | fn any_lifetime<'b>() -> &'b u8 { &0 }
175 | ^^^^
ff7c6d11
XL
176
177error[E0261]: use of undeclared lifetime name `'b`
0731742a 178 --> $DIR/feature-gate-in_band_lifetimes.rs:57:27
ff7c6d11 179 |
0531ce1d 180LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
ff7c6d11 181 | ^^ undeclared lifetime
dfeec247
XL
182 |
183help: consider introducing lifetime `'b` here
184 |
185LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
186 | ^^^^
187help: consider introducing lifetime `'b` here
188 |
189LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
190 | ^^^^
ff7c6d11
XL
191
192error[E0261]: use of undeclared lifetime name `'b`
0731742a 193 --> $DIR/feature-gate-in_band_lifetimes.rs:57:40
ff7c6d11 194 |
0531ce1d 195LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
ff7c6d11 196 | ^^ undeclared lifetime
dfeec247
XL
197 |
198help: consider introducing lifetime `'b` here
199 |
200LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
201 | ^^^^
202help: consider introducing lifetime `'b` here
203 |
204LL | fn borrowed_lifetime<'b>(&'b self) -> &'b u8 { &*self.0 }
205 | ^^^^
ff7c6d11
XL
206
207error: aborting due to 17 previous errors
208
0531ce1d 209For more information about this error, try `rustc --explain E0261`.