]> git.proxmox.com Git - rustc.git/blob - tests/ui/suggestions/missing-lifetime-specifier.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / suggestions / missing-lifetime-specifier.stderr
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());
11 | ++++++++++++++++++
12
13 error[E0106]: missing lifetime specifiers
14 --> $DIR/missing-lifetime-specifier.rs:18:44
15 |
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
25
26 error[E0106]: missing lifetime specifiers
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 2 lifetime parameters
31 | |
32 | expected named lifetime parameter
33 |
34 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
35 help: consider using the `'static` lifetime
36 |
37 LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar<'static, 'static>>>>> = RefCell::new(HashMap::new());
38 | +++++++ ++++++++++++++++++
39
40 error[E0106]: missing lifetime specifiers
41 --> $DIR/missing-lifetime-specifier.rs:23:44
42 |
43 LL | / thread_local! {
44 LL | | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
45 | | ^^^^ expected 2 lifetime parameters
46 | | |
47 | | expected named lifetime parameter
48 LL | |
49 LL | |
50 LL | | }
51 | |_-
52 |
53 = 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
54
55 error[E0106]: missing lifetime specifiers
56 --> $DIR/missing-lifetime-specifier.rs:28:47
57 |
58 LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
59 | ^ expected 2 lifetime parameters
60 |
61 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
62 help: consider using the `'static` lifetime
63 |
64 LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
65 | +++++++++++++++++
66
67 error[E0106]: missing lifetime specifiers
68 --> $DIR/missing-lifetime-specifier.rs:28:47
69 |
70 LL | / thread_local! {
71 LL | | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
72 | | ^ expected 2 lifetime parameters
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 3 lifetimes it is borrowed from
79
80 error[E0106]: missing lifetime specifiers
81 --> $DIR/missing-lifetime-specifier.rs:33:44
82 |
83 LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
84 | ^ ^ expected 2 lifetime parameters
85 | |
86 | expected named lifetime parameter
87 |
88 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
89 help: consider using the `'static` lifetime
90 |
91 LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
92 | +++++++ +++++++++++++++++
93
94 error[E0106]: missing lifetime specifiers
95 --> $DIR/missing-lifetime-specifier.rs:33:44
96 |
97 LL | / thread_local! {
98 LL | | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
99 | | ^ ^ expected 2 lifetime parameters
100 | | |
101 | | expected named lifetime parameter
102 LL | |
103 LL | |
104 LL | | }
105 | |_-
106 |
107 = 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
108
109 error[E0106]: missing lifetime specifier
110 --> $DIR/missing-lifetime-specifier.rs:47:44
111 |
112 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
113 | ^ expected named lifetime parameter
114 |
115 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
116 help: consider using the `'static` lifetime
117 |
118 LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
119 | +++++++
120
121 error[E0106]: missing lifetime specifier
122 --> $DIR/missing-lifetime-specifier.rs:47:44
123 |
124 LL | / thread_local! {
125 LL | | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
126 | | ^ expected named lifetime parameter
127 LL | |
128 LL | |
129 ... |
130 LL | |
131 LL | | }
132 | |_-
133 |
134 = 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
135
136 error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
137 --> $DIR/missing-lifetime-specifier.rs:39:44
138 |
139 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
140 | ^^^ ------- supplied 1 lifetime argument
141 | |
142 | expected 2 lifetime arguments
143 |
144 note: union defined here, with 2 lifetime parameters: `'t`, `'k`
145 --> $DIR/missing-lifetime-specifier.rs:11:11
146 |
147 LL | pub union Qux<'t, 'k, I> {
148 | ^^^ -- --
149 help: add missing lifetime argument
150 |
151 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
152 | +++++++++
153
154 error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
155 --> $DIR/missing-lifetime-specifier.rs:39:44
156 |
157 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
158 | ^^^ ------- supplied 1 lifetime argument
159 | |
160 | expected 2 lifetime arguments
161 |
162 note: union defined here, with 2 lifetime parameters: `'t`, `'k`
163 --> $DIR/missing-lifetime-specifier.rs:11:11
164 |
165 LL | pub union Qux<'t, 'k, I> {
166 | ^^^ -- --
167 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
168 help: add missing lifetime argument
169 |
170 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
171 | +++++++++
172
173 error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
174 --> $DIR/missing-lifetime-specifier.rs:39:44
175 |
176 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
177 | ^^^ ------- supplied 1 lifetime argument
178 | |
179 | expected 2 lifetime arguments
180 |
181 note: union defined here, with 2 lifetime parameters: `'t`, `'k`
182 --> $DIR/missing-lifetime-specifier.rs:11:11
183 |
184 LL | pub union Qux<'t, 'k, I> {
185 | ^^^ -- --
186 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
187 help: add missing lifetime argument
188 |
189 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
190 | +++++++++
191
192 error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
193 --> $DIR/missing-lifetime-specifier.rs:39:44
194 |
195 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
196 | ^^^ ------- supplied 1 lifetime argument
197 | |
198 | expected 2 lifetime arguments
199 |
200 note: union defined here, with 2 lifetime parameters: `'t`, `'k`
201 --> $DIR/missing-lifetime-specifier.rs:11:11
202 |
203 LL | pub union Qux<'t, 'k, I> {
204 | ^^^ -- --
205 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
206 help: add missing lifetime argument
207 |
208 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
209 | +++++++++
210
211 error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
212 --> $DIR/missing-lifetime-specifier.rs:39:44
213 |
214 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
215 | ^^^ ------- supplied 1 lifetime argument
216 | |
217 | expected 2 lifetime arguments
218 |
219 note: union defined here, with 2 lifetime parameters: `'t`, `'k`
220 --> $DIR/missing-lifetime-specifier.rs:11:11
221 |
222 LL | pub union Qux<'t, 'k, I> {
223 | ^^^ -- --
224 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
225 help: add missing lifetime argument
226 |
227 LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
228 | +++++++++
229
230 error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
231 --> $DIR/missing-lifetime-specifier.rs:47:45
232 |
233 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
234 | ^^^ ------- supplied 1 lifetime argument
235 | |
236 | expected 2 lifetime arguments
237 |
238 note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
239 --> $DIR/missing-lifetime-specifier.rs:15:7
240 |
241 LL | trait Tar<'t, 'k, I> {}
242 | ^^^ -- --
243 help: add missing lifetime argument
244 |
245 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
246 | +++++++++
247
248 error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
249 --> $DIR/missing-lifetime-specifier.rs:47:45
250 |
251 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
252 | ^^^ ------- supplied 1 lifetime argument
253 | |
254 | expected 2 lifetime arguments
255 |
256 note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
257 --> $DIR/missing-lifetime-specifier.rs:15:7
258 |
259 LL | trait Tar<'t, 'k, I> {}
260 | ^^^ -- --
261 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
262 help: add missing lifetime argument
263 |
264 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
265 | +++++++++
266
267 error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
268 --> $DIR/missing-lifetime-specifier.rs:47:45
269 |
270 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
271 | ^^^ ------- supplied 1 lifetime argument
272 | |
273 | expected 2 lifetime arguments
274 |
275 note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
276 --> $DIR/missing-lifetime-specifier.rs:15:7
277 |
278 LL | trait Tar<'t, 'k, I> {}
279 | ^^^ -- --
280 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
281 help: add missing lifetime argument
282 |
283 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
284 | +++++++++
285
286 error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
287 --> $DIR/missing-lifetime-specifier.rs:47:45
288 |
289 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
290 | ^^^ ------- supplied 1 lifetime argument
291 | |
292 | expected 2 lifetime arguments
293 |
294 note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
295 --> $DIR/missing-lifetime-specifier.rs:15:7
296 |
297 LL | trait Tar<'t, 'k, I> {}
298 | ^^^ -- --
299 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
300 help: add missing lifetime argument
301 |
302 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
303 | +++++++++
304
305 error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
306 --> $DIR/missing-lifetime-specifier.rs:47:45
307 |
308 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
309 | ^^^ ------- supplied 1 lifetime argument
310 | |
311 | expected 2 lifetime arguments
312 |
313 note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
314 --> $DIR/missing-lifetime-specifier.rs:15:7
315 |
316 LL | trait Tar<'t, 'k, I> {}
317 | ^^^ -- --
318 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
319 help: add missing lifetime argument
320 |
321 LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, 'static, i32>>>>> = RefCell::new(HashMap::new());
322 | +++++++++
323
324 error: aborting due to 20 previous errors
325
326 Some errors have detailed explanations: E0106, E0107.
327 For more information about an error, try `rustc --explain E0106`.