]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
1 | error[E0106]: missing lifetime specifiers |
2 | --> $DIR/missing-lifetime-specifier.rs:18:44 | |
3 | | | |
4 | LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new()); | |
5 | | ^^^ expected 2 lifetime parameters | |
6 | | | |
7 | = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from | |
8 | help: consider using the `'static` lifetime | |
9 | | | |
10 | LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo<'static, 'static>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 11 | | ~~~~~~~~~~~~~~~~~~~~~ |
f9f354fc XL |
12 | |
13 | error[E0106]: missing lifetime specifiers | |
14 | --> $DIR/missing-lifetime-specifier.rs:18:44 | |
15 | | | |
5e7ed085 FG |
16 | LL | / thread_local! { |
17 | LL | | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new()); | |
18 | | | ^^^ expected 2 lifetime parameters | |
19 | LL | | | |
20 | LL | | | |
21 | LL | | } | |
22 | | |_- | |
23 | | | |
24 | = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 3 lifetimes it is borrowed from | |
f9f354fc XL |
25 | |
26 | error[E0106]: missing lifetime specifier | |
27 | --> $DIR/missing-lifetime-specifier.rs:23:44 | |
28 | | | |
29 | LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new()); | |
30 | | ^ expected named lifetime parameter | |
31 | | | |
32 | = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from | |
33 | help: consider using the `'static` lifetime | |
34 | | | |
35 | LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 36 | | ~~~~~~~~ |
f9f354fc XL |
37 | |
38 | error[E0106]: missing lifetime specifiers | |
39 | --> $DIR/missing-lifetime-specifier.rs:23:45 | |
40 | | | |
41 | LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new()); | |
42 | | ^^^ expected 2 lifetime parameters | |
43 | | | |
44 | = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from | |
45 | help: consider using the `'static` lifetime | |
46 | | | |
47 | LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar<'static, 'static>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 48 | | ~~~~~~~~~~~~~~~~~~~~~ |
f9f354fc XL |
49 | |
50 | error[E0106]: missing lifetime specifier | |
51 | --> $DIR/missing-lifetime-specifier.rs:23:44 | |
52 | | | |
5e7ed085 FG |
53 | LL | / thread_local! { |
54 | LL | | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new()); | |
55 | | | ^ expected named lifetime parameter | |
56 | LL | | | |
57 | LL | | | |
58 | LL | | | |
59 | LL | | | |
60 | LL | | } | |
61 | | |_- | |
62 | | | |
63 | = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 4 lifetimes it is borrowed from | |
f9f354fc XL |
64 | |
65 | error[E0106]: missing lifetime specifiers | |
66 | --> $DIR/missing-lifetime-specifier.rs:23:45 | |
67 | | | |
5e7ed085 FG |
68 | LL | / thread_local! { |
69 | LL | | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new()); | |
70 | | | ^^^ expected 2 lifetime parameters | |
71 | LL | | | |
72 | LL | | | |
73 | LL | | | |
74 | LL | | | |
75 | LL | | } | |
76 | | |_- | |
77 | | | |
78 | = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 4 lifetimes it is borrowed from | |
f9f354fc XL |
79 | |
80 | error[E0106]: missing lifetime specifiers | |
3dfed10e | 81 | --> $DIR/missing-lifetime-specifier.rs:30:48 |
f9f354fc XL |
82 | | |
83 | LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new()); | |
84 | | ^ expected 2 lifetime parameters | |
85 | | | |
86 | = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from | |
87 | help: consider using the `'static` lifetime | |
88 | | | |
89 | LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 90 | | +++++++++++++++++ |
f9f354fc XL |
91 | |
92 | error[E0106]: missing lifetime specifiers | |
3dfed10e | 93 | --> $DIR/missing-lifetime-specifier.rs:30:48 |
f9f354fc | 94 | | |
5e7ed085 FG |
95 | LL | / thread_local! { |
96 | LL | | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new()); | |
97 | | | ^ expected 2 lifetime parameters | |
98 | LL | | | |
99 | LL | | | |
100 | LL | | } | |
101 | | |_- | |
f9f354fc | 102 | | |
5e7ed085 | 103 | = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 3 lifetimes it is borrowed from |
f9f354fc XL |
104 | |
105 | error[E0106]: missing lifetime specifier | |
3dfed10e | 106 | --> $DIR/missing-lifetime-specifier.rs:35:44 |
f9f354fc XL |
107 | | |
108 | LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new()); | |
109 | | ^ expected named lifetime parameter | |
110 | | | |
111 | = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from | |
112 | help: consider using the `'static` lifetime | |
113 | | | |
114 | LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 115 | | ~~~~~~~~ |
f9f354fc XL |
116 | |
117 | error[E0106]: missing lifetime specifiers | |
3dfed10e | 118 | --> $DIR/missing-lifetime-specifier.rs:35:49 |
f9f354fc XL |
119 | | |
120 | LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new()); | |
121 | | ^ expected 2 lifetime parameters | |
122 | | | |
123 | = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from | |
124 | help: consider using the `'static` lifetime | |
125 | | | |
126 | LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 127 | | +++++++++++++++++ |
f9f354fc XL |
128 | |
129 | error[E0106]: missing lifetime specifier | |
3dfed10e | 130 | --> $DIR/missing-lifetime-specifier.rs:35:44 |
f9f354fc | 131 | | |
5e7ed085 FG |
132 | LL | / thread_local! { |
133 | LL | | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new()); | |
134 | | | ^ expected named lifetime parameter | |
135 | LL | | | |
136 | LL | | | |
137 | LL | | | |
138 | LL | | | |
139 | LL | | } | |
140 | | |_- | |
141 | | | |
142 | = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 4 lifetimes it is borrowed from | |
f9f354fc XL |
143 | |
144 | error[E0106]: missing lifetime specifiers | |
3dfed10e | 145 | --> $DIR/missing-lifetime-specifier.rs:35:49 |
f9f354fc | 146 | | |
5e7ed085 FG |
147 | LL | / thread_local! { |
148 | LL | | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new()); | |
149 | | | ^ expected 2 lifetime parameters | |
150 | LL | | | |
151 | LL | | | |
152 | LL | | | |
153 | LL | | | |
154 | LL | | } | |
155 | | |_- | |
156 | | | |
157 | = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 4 lifetimes it is borrowed from | |
158 | ||
159 | error[E0107]: this union takes 2 lifetime arguments but 1 lifetime argument was supplied | |
160 | --> $DIR/missing-lifetime-specifier.rs:43:44 | |
f9f354fc | 161 | | |
5e7ed085 FG |
162 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new()); |
163 | | ^^^ ------- supplied 1 lifetime argument | |
164 | | | | |
165 | | expected 2 lifetime arguments | |
f9f354fc | 166 | | |
5e7ed085 FG |
167 | note: union defined here, with 2 lifetime parameters: `'t`, `'k` |
168 | --> $DIR/missing-lifetime-specifier.rs:11:11 | |
169 | | | |
170 | LL | pub union Qux<'t, 'k, I> { | |
171 | | ^^^ -- -- | |
172 | help: add missing lifetime argument | |
173 | | | |
174 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, '_, i32>>>>> = RefCell::new(HashMap::new()); | |
175 | | ++++ | |
f9f354fc | 176 | |
17df50a5 | 177 | error[E0107]: this union takes 2 lifetime arguments but 1 lifetime argument was supplied |
3dfed10e | 178 | --> $DIR/missing-lifetime-specifier.rs:43:44 |
f9f354fc XL |
179 | | |
180 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
181 | | ^^^ ------- supplied 1 lifetime argument |
182 | | | | |
183 | | expected 2 lifetime arguments | |
184 | | | |
185 | note: union defined here, with 2 lifetime parameters: `'t`, `'k` | |
186 | --> $DIR/missing-lifetime-specifier.rs:11:11 | |
187 | | | |
188 | LL | pub union Qux<'t, 'k, I> { | |
189 | | ^^^ -- -- | |
190 | help: add missing lifetime argument | |
191 | | | |
5e7ed085 | 192 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'k, i32>>>>> = RefCell::new(HashMap::new()); |
94222f64 | 193 | | ++++ |
f9f354fc | 194 | |
17df50a5 | 195 | error[E0107]: this union takes 2 lifetime arguments but 1 lifetime argument was supplied |
3dfed10e | 196 | --> $DIR/missing-lifetime-specifier.rs:43:44 |
f9f354fc XL |
197 | | |
198 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
199 | | ^^^ ------- supplied 1 lifetime argument |
200 | | | | |
201 | | expected 2 lifetime arguments | |
202 | | | |
203 | note: union defined here, with 2 lifetime parameters: `'t`, `'k` | |
204 | --> $DIR/missing-lifetime-specifier.rs:11:11 | |
205 | | | |
206 | LL | pub union Qux<'t, 'k, I> { | |
207 | | ^^^ -- -- | |
208 | help: add missing lifetime argument | |
209 | | | |
210 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'k, i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 211 | | ++++ |
f9f354fc | 212 | |
17df50a5 | 213 | error[E0107]: this union takes 2 lifetime arguments but 1 lifetime argument was supplied |
3dfed10e | 214 | --> $DIR/missing-lifetime-specifier.rs:43:44 |
f9f354fc XL |
215 | | |
216 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
217 | | ^^^ ------- supplied 1 lifetime argument |
218 | | | | |
219 | | expected 2 lifetime arguments | |
220 | | | |
221 | note: union defined here, with 2 lifetime parameters: `'t`, `'k` | |
222 | --> $DIR/missing-lifetime-specifier.rs:11:11 | |
223 | | | |
224 | LL | pub union Qux<'t, 'k, I> { | |
225 | | ^^^ -- -- | |
226 | help: add missing lifetime argument | |
227 | | | |
228 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'k, i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 229 | | ++++ |
f9f354fc | 230 | |
17df50a5 | 231 | error[E0107]: this union takes 2 lifetime arguments but 1 lifetime argument was supplied |
3dfed10e | 232 | --> $DIR/missing-lifetime-specifier.rs:43:44 |
f9f354fc XL |
233 | | |
234 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
235 | | ^^^ ------- supplied 1 lifetime argument |
236 | | | | |
237 | | expected 2 lifetime arguments | |
238 | | | |
239 | note: union defined here, with 2 lifetime parameters: `'t`, `'k` | |
240 | --> $DIR/missing-lifetime-specifier.rs:11:11 | |
241 | | | |
242 | LL | pub union Qux<'t, 'k, I> { | |
243 | | ^^^ -- -- | |
244 | help: add missing lifetime argument | |
245 | | | |
17df50a5 | 246 | LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, '_, i32>>>>> = RefCell::new(HashMap::new()); |
94222f64 | 247 | | ++++ |
f9f354fc | 248 | |
17df50a5 | 249 | error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied |
5e7ed085 | 250 | --> $DIR/missing-lifetime-specifier.rs:51:45 |
f9f354fc XL |
251 | | |
252 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
253 | | ^^^ ------- supplied 1 lifetime argument |
254 | | | | |
255 | | expected 2 lifetime arguments | |
256 | | | |
257 | note: trait defined here, with 2 lifetime parameters: `'t`, `'k` | |
258 | --> $DIR/missing-lifetime-specifier.rs:15:7 | |
259 | | | |
260 | LL | trait Tar<'t, 'k, I> {} | |
261 | | ^^^ -- -- | |
262 | help: add missing lifetime argument | |
263 | | | |
17df50a5 | 264 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, '_, i32>>>>> = RefCell::new(HashMap::new()); |
94222f64 | 265 | | ++++ |
f9f354fc | 266 | |
cdc7bbd5 | 267 | error[E0106]: missing lifetime specifier |
5e7ed085 | 268 | --> $DIR/missing-lifetime-specifier.rs:51:44 |
cdc7bbd5 XL |
269 | | |
270 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
271 | | ^ expected named lifetime parameter | |
272 | | | |
273 | = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from | |
274 | help: consider using the `'static` lifetime | |
275 | | | |
276 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 277 | | ~~~~~~~~ |
cdc7bbd5 | 278 | |
17df50a5 | 279 | error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied |
5e7ed085 | 280 | --> $DIR/missing-lifetime-specifier.rs:51:45 |
f9f354fc XL |
281 | | |
282 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
283 | | ^^^ ------- supplied 1 lifetime argument |
284 | | | | |
285 | | expected 2 lifetime arguments | |
286 | | | |
287 | note: trait defined here, with 2 lifetime parameters: `'t`, `'k` | |
288 | --> $DIR/missing-lifetime-specifier.rs:15:7 | |
289 | | | |
290 | LL | trait Tar<'t, 'k, I> {} | |
291 | | ^^^ -- -- | |
292 | help: add missing lifetime argument | |
293 | | | |
294 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'k, i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 295 | | ++++ |
f9f354fc | 296 | |
cdc7bbd5 | 297 | error[E0106]: missing lifetime specifier |
5e7ed085 FG |
298 | --> $DIR/missing-lifetime-specifier.rs:51:44 |
299 | | | |
300 | LL | / thread_local! { | |
301 | LL | | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
302 | | | ^ expected named lifetime parameter | |
303 | LL | | | |
304 | LL | | | |
305 | ... | | |
306 | LL | | | |
307 | LL | | } | |
308 | | |_- | |
309 | | | |
310 | = help: this function's return type contains a borrowed value, but the signature does not say which one of `init`'s 3 lifetimes it is borrowed from | |
311 | ||
312 | error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied | |
313 | --> $DIR/missing-lifetime-specifier.rs:51:45 | |
cdc7bbd5 XL |
314 | | |
315 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5e7ed085 FG |
316 | | ^^^ ------- supplied 1 lifetime argument |
317 | | | | |
318 | | expected 2 lifetime arguments | |
cdc7bbd5 | 319 | | |
5e7ed085 FG |
320 | note: trait defined here, with 2 lifetime parameters: `'t`, `'k` |
321 | --> $DIR/missing-lifetime-specifier.rs:15:7 | |
cdc7bbd5 | 322 | | |
5e7ed085 FG |
323 | LL | trait Tar<'t, 'k, I> {} |
324 | | ^^^ -- -- | |
325 | help: add missing lifetime argument | |
326 | | | |
327 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'k, i32>>>>> = RefCell::new(HashMap::new()); | |
328 | | ++++ | |
cdc7bbd5 | 329 | |
17df50a5 | 330 | error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied |
5e7ed085 | 331 | --> $DIR/missing-lifetime-specifier.rs:51:45 |
f9f354fc XL |
332 | | |
333 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
334 | | ^^^ ------- supplied 1 lifetime argument |
335 | | | | |
336 | | expected 2 lifetime arguments | |
337 | | | |
338 | note: trait defined here, with 2 lifetime parameters: `'t`, `'k` | |
339 | --> $DIR/missing-lifetime-specifier.rs:15:7 | |
340 | | | |
341 | LL | trait Tar<'t, 'k, I> {} | |
342 | | ^^^ -- -- | |
343 | help: add missing lifetime argument | |
344 | | | |
345 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'k, i32>>>>> = RefCell::new(HashMap::new()); | |
94222f64 | 346 | | ++++ |
f9f354fc | 347 | |
17df50a5 | 348 | error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied |
5e7ed085 | 349 | --> $DIR/missing-lifetime-specifier.rs:51:45 |
f9f354fc XL |
350 | | |
351 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); | |
5869c6ff XL |
352 | | ^^^ ------- supplied 1 lifetime argument |
353 | | | | |
354 | | expected 2 lifetime arguments | |
355 | | | |
356 | note: trait defined here, with 2 lifetime parameters: `'t`, `'k` | |
357 | --> $DIR/missing-lifetime-specifier.rs:15:7 | |
358 | | | |
359 | LL | trait Tar<'t, 'k, I> {} | |
360 | | ^^^ -- -- | |
361 | help: add missing lifetime argument | |
362 | | | |
17df50a5 | 363 | LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, '_, i32>>>>> = RefCell::new(HashMap::new()); |
94222f64 | 364 | | ++++ |
f9f354fc | 365 | |
5e7ed085 | 366 | error: aborting due to 24 previous errors |
f9f354fc | 367 | |
3dfed10e | 368 | Some errors have detailed explanations: E0106, E0107. |
f9f354fc | 369 | For more information about an error, try `rustc --explain E0106`. |