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