]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/missing-lifetime-specifier.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / suggestions / missing-lifetime-specifier.stderr
CommitLineData
f9f354fc
XL
1error[E0106]: missing lifetime specifiers
2 --> $DIR/missing-lifetime-specifier.rs:18:44
3 |
4LL | 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
8help: consider using the `'static` lifetime
9 |
10LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo<'static, 'static>>>>> = RefCell::new(HashMap::new());
94222f64 11 | ~~~~~~~~~~~~~~~~~~~~~
f9f354fc
XL
12
13error[E0106]: missing lifetime specifiers
14 --> $DIR/missing-lifetime-specifier.rs:18:44
15 |
ee023bcb
FG
16LL | / thread_local! {
17LL | | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new());
18 | | ^^^ expected 2 lifetime parameters
19LL | |
20LL | |
21LL | | }
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
26error[E0106]: missing lifetime specifier
27 --> $DIR/missing-lifetime-specifier.rs:23:44
28 |
29LL | 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
33help: consider using the `'static` lifetime
34 |
35LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar>>>> = RefCell::new(HashMap::new());
94222f64 36 | ~~~~~~~~
f9f354fc
XL
37
38error[E0106]: missing lifetime specifiers
39 --> $DIR/missing-lifetime-specifier.rs:23:45
40 |
41LL | 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
45help: consider using the `'static` lifetime
46 |
47LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar<'static, 'static>>>>> = RefCell::new(HashMap::new());
94222f64 48 | ~~~~~~~~~~~~~~~~~~~~~
f9f354fc
XL
49
50error[E0106]: missing lifetime specifier
51 --> $DIR/missing-lifetime-specifier.rs:23:44
52 |
ee023bcb
FG
53LL | / thread_local! {
54LL | | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
55 | | ^ expected named lifetime parameter
56LL | |
57LL | |
58LL | |
59LL | |
60LL | | }
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
65error[E0106]: missing lifetime specifiers
66 --> $DIR/missing-lifetime-specifier.rs:23:45
67 |
ee023bcb
FG
68LL | / thread_local! {
69LL | | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
70 | | ^^^ expected 2 lifetime parameters
71LL | |
72LL | |
73LL | |
74LL | |
75LL | | }
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
80error[E0106]: missing lifetime specifiers
3dfed10e 81 --> $DIR/missing-lifetime-specifier.rs:30:48
f9f354fc
XL
82 |
83LL | 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
87help: consider using the `'static` lifetime
88 |
89LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
94222f64 90 | +++++++++++++++++
f9f354fc
XL
91
92error[E0106]: missing lifetime specifiers
3dfed10e 93 --> $DIR/missing-lifetime-specifier.rs:30:48
f9f354fc 94 |
ee023bcb
FG
95LL | / thread_local! {
96LL | | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
97 | | ^ expected 2 lifetime parameters
98LL | |
99LL | |
100LL | | }
101 | |_-
f9f354fc 102 |
ee023bcb 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
105error[E0106]: missing lifetime specifier
3dfed10e 106 --> $DIR/missing-lifetime-specifier.rs:35:44
f9f354fc
XL
107 |
108LL | 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
112help: consider using the `'static` lifetime
113 |
114LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<i32>>>>> = RefCell::new(HashMap::new());
94222f64 115 | ~~~~~~~~
f9f354fc
XL
116
117error[E0106]: missing lifetime specifiers
3dfed10e 118 --> $DIR/missing-lifetime-specifier.rs:35:49
f9f354fc
XL
119 |
120LL | 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
124help: consider using the `'static` lifetime
125 |
126LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
94222f64 127 | +++++++++++++++++
f9f354fc
XL
128
129error[E0106]: missing lifetime specifier
3dfed10e 130 --> $DIR/missing-lifetime-specifier.rs:35:44
f9f354fc 131 |
ee023bcb
FG
132LL | / thread_local! {
133LL | | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
134 | | ^ expected named lifetime parameter
135LL | |
136LL | |
137LL | |
138LL | |
139LL | | }
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
144error[E0106]: missing lifetime specifiers
3dfed10e 145 --> $DIR/missing-lifetime-specifier.rs:35:49
f9f354fc 146 |
ee023bcb
FG
147LL | / thread_local! {
148LL | | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
149 | | ^ expected 2 lifetime parameters
150LL | |
151LL | |
152LL | |
153LL | |
154LL | | }
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
159error[E0107]: this union takes 2 lifetime arguments but 1 lifetime argument was supplied
160 --> $DIR/missing-lifetime-specifier.rs:43:44
f9f354fc 161 |
ee023bcb
FG
162LL | 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 |
ee023bcb
FG
167note: union defined here, with 2 lifetime parameters: `'t`, `'k`
168 --> $DIR/missing-lifetime-specifier.rs:11:11
169 |
170LL | pub union Qux<'t, 'k, I> {
171 | ^^^ -- --
172help: add missing lifetime argument
173 |
174LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, '_, i32>>>>> = RefCell::new(HashMap::new());
175 | ++++
f9f354fc 176
17df50a5 177error[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 |
180LL | 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 |
185note: union defined here, with 2 lifetime parameters: `'t`, `'k`
186 --> $DIR/missing-lifetime-specifier.rs:11:11
187 |
188LL | pub union Qux<'t, 'k, I> {
189 | ^^^ -- --
190help: add missing lifetime argument
191 |
ee023bcb 192LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'k, i32>>>>> = RefCell::new(HashMap::new());
94222f64 193 | ++++
f9f354fc 194
17df50a5 195error[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 |
198LL | 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 |
203note: union defined here, with 2 lifetime parameters: `'t`, `'k`
204 --> $DIR/missing-lifetime-specifier.rs:11:11
205 |
206LL | pub union Qux<'t, 'k, I> {
207 | ^^^ -- --
208help: add missing lifetime argument
209 |
210LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'k, i32>>>>> = RefCell::new(HashMap::new());
94222f64 211 | ++++
f9f354fc 212
17df50a5 213error[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 |
216LL | 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 |
221note: union defined here, with 2 lifetime parameters: `'t`, `'k`
222 --> $DIR/missing-lifetime-specifier.rs:11:11
223 |
224LL | pub union Qux<'t, 'k, I> {
225 | ^^^ -- --
226help: add missing lifetime argument
227 |
228LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'k, i32>>>>> = RefCell::new(HashMap::new());
94222f64 229 | ++++
f9f354fc 230
17df50a5 231error[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 |
234LL | 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 |
239note: union defined here, with 2 lifetime parameters: `'t`, `'k`
240 --> $DIR/missing-lifetime-specifier.rs:11:11
241 |
242LL | pub union Qux<'t, 'k, I> {
243 | ^^^ -- --
244help: add missing lifetime argument
245 |
17df50a5 246LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, '_, i32>>>>> = RefCell::new(HashMap::new());
94222f64 247 | ++++
f9f354fc 248
17df50a5 249error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
ee023bcb 250 --> $DIR/missing-lifetime-specifier.rs:51:45
f9f354fc
XL
251 |
252LL | 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 |
257note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
258 --> $DIR/missing-lifetime-specifier.rs:15:7
259 |
260LL | trait Tar<'t, 'k, I> {}
261 | ^^^ -- --
262help: add missing lifetime argument
263 |
17df50a5 264LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, '_, i32>>>>> = RefCell::new(HashMap::new());
94222f64 265 | ++++
f9f354fc 266
cdc7bbd5 267error[E0106]: missing lifetime specifier
ee023bcb 268 --> $DIR/missing-lifetime-specifier.rs:51:44
cdc7bbd5
XL
269 |
270LL | 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
274help: consider using the `'static` lifetime
275 |
276LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
94222f64 277 | ~~~~~~~~
cdc7bbd5 278
17df50a5 279error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
ee023bcb 280 --> $DIR/missing-lifetime-specifier.rs:51:45
f9f354fc
XL
281 |
282LL | 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 |
287note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
288 --> $DIR/missing-lifetime-specifier.rs:15:7
289 |
290LL | trait Tar<'t, 'k, I> {}
291 | ^^^ -- --
292help: add missing lifetime argument
293 |
294LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'k, i32>>>>> = RefCell::new(HashMap::new());
94222f64 295 | ++++
f9f354fc 296
cdc7bbd5 297error[E0106]: missing lifetime specifier
ee023bcb
FG
298 --> $DIR/missing-lifetime-specifier.rs:51:44
299 |
300LL | / thread_local! {
301LL | | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
302 | | ^ expected named lifetime parameter
303LL | |
304LL | |
305... |
306LL | |
307LL | | }
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
312error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
313 --> $DIR/missing-lifetime-specifier.rs:51:45
cdc7bbd5
XL
314 |
315LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
ee023bcb
FG
316 | ^^^ ------- supplied 1 lifetime argument
317 | |
318 | expected 2 lifetime arguments
cdc7bbd5 319 |
ee023bcb
FG
320note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
321 --> $DIR/missing-lifetime-specifier.rs:15:7
cdc7bbd5 322 |
ee023bcb
FG
323LL | trait Tar<'t, 'k, I> {}
324 | ^^^ -- --
325help: add missing lifetime argument
326 |
327LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'k, i32>>>>> = RefCell::new(HashMap::new());
328 | ++++
cdc7bbd5 329
17df50a5 330error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
ee023bcb 331 --> $DIR/missing-lifetime-specifier.rs:51:45
f9f354fc
XL
332 |
333LL | 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 |
338note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
339 --> $DIR/missing-lifetime-specifier.rs:15:7
340 |
341LL | trait Tar<'t, 'k, I> {}
342 | ^^^ -- --
343help: add missing lifetime argument
344 |
345LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'k, i32>>>>> = RefCell::new(HashMap::new());
94222f64 346 | ++++
f9f354fc 347
17df50a5 348error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
ee023bcb 349 --> $DIR/missing-lifetime-specifier.rs:51:45
f9f354fc
XL
350 |
351LL | 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 |
356note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
357 --> $DIR/missing-lifetime-specifier.rs:15:7
358 |
359LL | trait Tar<'t, 'k, I> {}
360 | ^^^ -- --
361help: add missing lifetime argument
362 |
17df50a5 363LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, '_, i32>>>>> = RefCell::new(HashMap::new());
94222f64 364 | ++++
f9f354fc 365
ee023bcb 366error: aborting due to 24 previous errors
f9f354fc 367
3dfed10e 368Some errors have detailed explanations: E0106, E0107.
f9f354fc 369For more information about an error, try `rustc --explain E0106`.