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