]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/issue-105742.stderr
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / rustdoc-ui / issue-105742.stderr
1 error[E0107]: missing generics for associated type `SVec::Item`
2   --> $DIR/issue-105742.rs:13:21
3    |
4 LL |     <Self as SVec>::Item,
5    |                     ^^^^ expected 1 lifetime argument
6    |
7 note: associated type defined here, with 1 lifetime parameter: `'a`
8   --> $DIR/issue-105742.rs:33:10
9    |
10 LL |     type Item<'a, T>;
11    |          ^^^^ --
12 help: add missing lifetime argument
13    |
14 LL |     <Self as SVec>::Item<'a>,
15    |                         ++++
16
17 error[E0107]: missing generics for associated type `SVec::Item`
18   --> $DIR/issue-105742.rs:13:21
19    |
20 LL |     <Self as SVec>::Item,
21    |                     ^^^^ expected 1 generic argument
22    |
23 note: associated type defined here, with 1 generic parameter: `T`
24   --> $DIR/issue-105742.rs:33:10
25    |
26 LL |     type Item<'a, T>;
27    |          ^^^^     -
28 help: add missing generic argument
29    |
30 LL |     <Self as SVec>::Item<T>,
31    |                         +++
32
33 error[E0107]: missing generics for associated type `SVec::Item`
34   --> $DIR/issue-105742.rs:18:37
35    |
36 LL |     Output = <Index<<Self as SVec>::Item,
37    |                                     ^^^^ expected 1 lifetime argument
38    |
39 note: associated type defined here, with 1 lifetime parameter: `'a`
40   --> $DIR/issue-105742.rs:33:10
41    |
42 LL |     type Item<'a, T>;
43    |          ^^^^ --
44 help: add missing lifetime argument
45    |
46 LL |     Output = <Index<<Self as SVec>::Item<'a>,
47    |                                         ++++
48
49 error[E0107]: missing generics for associated type `SVec::Item`
50   --> $DIR/issue-105742.rs:18:37
51    |
52 LL |     Output = <Index<<Self as SVec>::Item,
53    |                                     ^^^^ expected 1 generic argument
54    |
55 note: associated type defined here, with 1 generic parameter: `T`
56   --> $DIR/issue-105742.rs:33:10
57    |
58 LL |     type Item<'a, T>;
59    |          ^^^^     -
60 help: add missing generic argument
61    |
62 LL |     Output = <Index<<Self as SVec>::Item<T>,
63    |                                         +++
64
65 error[E0107]: missing generics for associated type `SVec::Item`
66   --> $DIR/issue-105742.rs:23:30
67    |
68 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
69    |                              ^^^^ expected 1 lifetime argument
70    |
71 note: associated type defined here, with 1 lifetime parameter: `'a`
72   --> $DIR/issue-105742.rs:33:10
73    |
74 LL |     type Item<'a, T>;
75    |          ^^^^ --
76 help: add missing lifetime argument
77    |
78 LL |     Output = <Self as SVec>::Item<'a>> as SVec>::Item,
79    |                                  ++++
80
81 error[E0107]: missing generics for associated type `SVec::Item`
82   --> $DIR/issue-105742.rs:23:30
83    |
84 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
85    |                              ^^^^ expected 1 generic argument
86    |
87 note: associated type defined here, with 1 generic parameter: `T`
88   --> $DIR/issue-105742.rs:33:10
89    |
90 LL |     type Item<'a, T>;
91    |          ^^^^     -
92 help: add missing generic argument
93    |
94 LL |     Output = <Self as SVec>::Item<T>> as SVec>::Item,
95    |                                  +++
96
97 error[E0107]: missing generics for associated type `SVec::Item`
98   --> $DIR/issue-105742.rs:23:46
99    |
100 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
101    |                                              ^^^^ expected 1 lifetime argument
102    |
103 note: associated type defined here, with 1 lifetime parameter: `'a`
104   --> $DIR/issue-105742.rs:33:10
105    |
106 LL |     type Item<'a, T>;
107    |          ^^^^ --
108 help: add missing lifetime argument
109    |
110 LL |     Output = <Self as SVec>::Item> as SVec>::Item<'a>,
111    |                                                  ++++
112
113 error[E0107]: missing generics for associated type `SVec::Item`
114   --> $DIR/issue-105742.rs:23:46
115    |
116 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
117    |                                              ^^^^ expected 1 generic argument
118    |
119 note: associated type defined here, with 1 generic parameter: `T`
120   --> $DIR/issue-105742.rs:33:10
121    |
122 LL |     type Item<'a, T>;
123    |          ^^^^     -
124 help: add missing generic argument
125    |
126 LL |     Output = <Self as SVec>::Item> as SVec>::Item<T>,
127    |                                                  +++
128
129 error[E0107]: missing generics for associated type `SVec::Item`
130   --> $DIR/issue-105742.rs:5:40
131    |
132 LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
133    |                                        ^^^^ expected 1 lifetime argument
134    |
135 note: associated type defined here, with 1 lifetime parameter: `'a`
136   --> $DIR/issue-105742.rs:33:10
137    |
138 LL |     type Item<'a, T>;
139    |          ^^^^ --
140 help: add missing lifetime argument
141    |
142 LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item<'_> = T, Output = T>) {
143    |                                            ++++
144
145 error[E0107]: missing generics for associated type `SVec::Item`
146   --> $DIR/issue-105742.rs:5:40
147    |
148 LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
149    |                                        ^^^^ expected 1 generic argument
150    |
151 note: associated type defined here, with 1 generic parameter: `T`
152   --> $DIR/issue-105742.rs:33:10
153    |
154 LL |     type Item<'a, T>;
155    |          ^^^^     -
156 help: add missing generic argument
157    |
158 LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item<T> = T, Output = T>) {
159    |                                            +++
160
161 error[E0107]: missing generics for associated type `SVec::Item`
162   --> $DIR/issue-105742.rs:13:21
163    |
164 LL |     <Self as SVec>::Item,
165    |                     ^^^^ expected 1 lifetime argument
166    |
167 note: associated type defined here, with 1 lifetime parameter: `'a`
168   --> $DIR/issue-105742.rs:33:10
169    |
170 LL |     type Item<'a, T>;
171    |          ^^^^ --
172 help: add missing lifetime argument
173    |
174 LL |     <Self as SVec>::Item<'a>,
175    |                         ++++
176
177 error[E0107]: missing generics for associated type `SVec::Item`
178   --> $DIR/issue-105742.rs:13:21
179    |
180 LL |     <Self as SVec>::Item,
181    |                     ^^^^ expected 1 generic argument
182    |
183 note: associated type defined here, with 1 generic parameter: `T`
184   --> $DIR/issue-105742.rs:33:10
185    |
186 LL |     type Item<'a, T>;
187    |          ^^^^     -
188 help: add missing generic argument
189    |
190 LL |     <Self as SVec>::Item<T>,
191    |                         +++
192
193 error[E0107]: missing generics for associated type `SVec::Item`
194   --> $DIR/issue-105742.rs:18:37
195    |
196 LL |     Output = <Index<<Self as SVec>::Item,
197    |                                     ^^^^ expected 1 lifetime argument
198    |
199 note: associated type defined here, with 1 lifetime parameter: `'a`
200   --> $DIR/issue-105742.rs:33:10
201    |
202 LL |     type Item<'a, T>;
203    |          ^^^^ --
204 help: add missing lifetime argument
205    |
206 LL |     Output = <Index<<Self as SVec>::Item<'a>,
207    |                                         ++++
208
209 error[E0107]: missing generics for associated type `SVec::Item`
210   --> $DIR/issue-105742.rs:18:37
211    |
212 LL |     Output = <Index<<Self as SVec>::Item,
213    |                                     ^^^^ expected 1 generic argument
214    |
215 note: associated type defined here, with 1 generic parameter: `T`
216   --> $DIR/issue-105742.rs:33:10
217    |
218 LL |     type Item<'a, T>;
219    |          ^^^^     -
220 help: add missing generic argument
221    |
222 LL |     Output = <Index<<Self as SVec>::Item<T>,
223    |                                         +++
224
225 error[E0107]: missing generics for associated type `SVec::Item`
226   --> $DIR/issue-105742.rs:23:30
227    |
228 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
229    |                              ^^^^ expected 1 lifetime argument
230    |
231 note: associated type defined here, with 1 lifetime parameter: `'a`
232   --> $DIR/issue-105742.rs:33:10
233    |
234 LL |     type Item<'a, T>;
235    |          ^^^^ --
236 help: add missing lifetime argument
237    |
238 LL |     Output = <Self as SVec>::Item<'a>> as SVec>::Item,
239    |                                  ++++
240
241 error[E0107]: missing generics for associated type `SVec::Item`
242   --> $DIR/issue-105742.rs:23:30
243    |
244 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
245    |                              ^^^^ expected 1 generic argument
246    |
247 note: associated type defined here, with 1 generic parameter: `T`
248   --> $DIR/issue-105742.rs:33:10
249    |
250 LL |     type Item<'a, T>;
251    |          ^^^^     -
252 help: add missing generic argument
253    |
254 LL |     Output = <Self as SVec>::Item<T>> as SVec>::Item,
255    |                                  +++
256
257 error[E0107]: missing generics for associated type `SVec::Item`
258   --> $DIR/issue-105742.rs:23:46
259    |
260 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
261    |                                              ^^^^ expected 1 lifetime argument
262    |
263 note: associated type defined here, with 1 lifetime parameter: `'a`
264   --> $DIR/issue-105742.rs:33:10
265    |
266 LL |     type Item<'a, T>;
267    |          ^^^^ --
268 help: add missing lifetime argument
269    |
270 LL |     Output = <Self as SVec>::Item> as SVec>::Item<'a>,
271    |                                                  ++++
272
273 error[E0107]: missing generics for associated type `SVec::Item`
274   --> $DIR/issue-105742.rs:23:46
275    |
276 LL |     Output = <Self as SVec>::Item> as SVec>::Item,
277    |                                              ^^^^ expected 1 generic argument
278    |
279 note: associated type defined here, with 1 generic parameter: `T`
280   --> $DIR/issue-105742.rs:33:10
281    |
282 LL |     type Item<'a, T>;
283    |          ^^^^     -
284 help: add missing generic argument
285    |
286 LL |     Output = <Self as SVec>::Item> as SVec>::Item<T>,
287    |                                                  +++
288
289 error[E0038]: the trait `SVec` cannot be made into an object
290   --> $DIR/issue-105742.rs:5:31
291    |
292 LL | pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
293    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SVec` cannot be made into an object
294    |
295 note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
296   --> $DIR/issue-105742.rs:12:17
297    |
298 LL |    pub trait SVec: Index<
299    |  ____________----__^
300    | |            |
301    | |            this trait cannot be made into an object...
302 LL | |      <Self as SVec>::Item,
303 LL | |
304 LL | |
305 ...  |
306 LL | |/     Output = <Index<<Self as SVec>::Item,
307 LL | ||
308 LL | ||
309 LL | ||
310 LL | ||
311 LL | ||     Output = <Self as SVec>::Item> as SVec>::Item,
312    | ||_________________________________________________^ ...because it uses `Self` as a type parameter
313 ...  |
314 LL | |
315 LL | |  > {
316    | |__^ ...because it uses `Self` as a type parameter
317
318 error[E0107]: missing generics for associated type `SVec::Item`
319   --> $DIR/issue-105742.rs:35:38
320    |
321 LL |     fn len(&self) -> <Self as SVec>::Item;
322    |                                      ^^^^ expected 1 lifetime argument
323    |
324 note: associated type defined here, with 1 lifetime parameter: `'a`
325   --> $DIR/issue-105742.rs:33:10
326    |
327 LL |     type Item<'a, T>;
328    |          ^^^^ --
329 help: add missing lifetime argument
330    |
331 LL |     fn len(&self) -> <Self as SVec>::Item<'_>;
332    |                                          ++++
333
334 error[E0107]: missing generics for associated type `SVec::Item`
335   --> $DIR/issue-105742.rs:35:38
336    |
337 LL |     fn len(&self) -> <Self as SVec>::Item;
338    |                                      ^^^^ expected 1 generic argument
339    |
340 note: associated type defined here, with 1 generic parameter: `T`
341   --> $DIR/issue-105742.rs:33:10
342    |
343 LL |     type Item<'a, T>;
344    |          ^^^^     -
345 help: add missing generic argument
346    |
347 LL |     fn len(&self) -> <Self as SVec>::Item<T>;
348    |                                          +++
349
350 error[E0107]: missing generics for associated type `SVec::Item`
351   --> $DIR/issue-105742.rs:35:38
352    |
353 LL |     fn len(&self) -> <Self as SVec>::Item;
354    |                                      ^^^^ expected 1 lifetime argument
355    |
356 note: associated type defined here, with 1 lifetime parameter: `'a`
357   --> $DIR/issue-105742.rs:33:10
358    |
359 LL |     type Item<'a, T>;
360    |          ^^^^ --
361 help: add missing lifetime argument
362    |
363 LL |     fn len(&self) -> <Self as SVec>::Item<'_>;
364    |                                          ++++
365
366 error[E0107]: missing generics for associated type `SVec::Item`
367   --> $DIR/issue-105742.rs:35:38
368    |
369 LL |     fn len(&self) -> <Self as SVec>::Item;
370    |                                      ^^^^ expected 1 generic argument
371    |
372 note: associated type defined here, with 1 generic parameter: `T`
373   --> $DIR/issue-105742.rs:33:10
374    |
375 LL |     type Item<'a, T>;
376    |          ^^^^     -
377 help: add missing generic argument
378    |
379 LL |     fn len(&self) -> <Self as SVec>::Item<T>;
380    |                                          +++
381
382 error: aborting due to 23 previous errors
383
384 Some errors have detailed explanations: E0038, E0107.
385 For more information about an error, try `rustc --explain E0038`.