1 error[E0225]: only auto traits can be used as additional traits in a trait object
2 --> $DIR/trait-alias-no-extra-traits.rs:16:22
5 | ---- first non-auto trait
7 LL | type _T00 = dyn _0 + ObjB;
10 | | additional non-auto trait
11 | | trait alias used in trait object type (additional use)
12 | trait alias used in trait object type (first use)
14 error[E0225]: only auto traits can be used as additional traits in a trait object
15 --> $DIR/trait-alias-no-extra-traits.rs:19:24
18 | ---- additional non-auto trait
20 LL | type _T01 = dyn ObjB + _0;
21 | ---- ^^ trait alias used in trait object type (additional use)
23 | first non-auto trait
24 | trait alias used in trait object type (first use)
26 error[E0225]: only auto traits can be used as additional traits in a trait object
27 --> $DIR/trait-alias-no-extra-traits.rs:22:24
30 | ---- additional non-auto trait
32 | -- referenced here (additional use)
34 LL | type _T02 = dyn ObjB + _1;
35 | ---- ^^ trait alias used in trait object type (additional use)
37 | first non-auto trait
38 | trait alias used in trait object type (first use)
40 error[E0225]: only auto traits can be used as additional traits in a trait object
41 --> $DIR/trait-alias-no-extra-traits.rs:25:22
44 | ---- first non-auto trait
46 | -- referenced here (first use)
48 LL | type _T03 = dyn _1 + ObjB;
51 | | additional non-auto trait
52 | | trait alias used in trait object type (additional use)
53 | trait alias used in trait object type (first use)
55 error[E0225]: only auto traits can be used as additional traits in a trait object
56 --> $DIR/trait-alias-no-extra-traits.rs:34:22
61 | additional non-auto trait
62 | first non-auto trait
64 | -- referenced here (additional use)
66 LL | type _T10 = dyn _2 + _3;
67 | -- ^^ trait alias used in trait object type (additional use)
69 | trait alias used in trait object type (first use)
71 error[E0225]: only auto traits can be used as additional traits in a trait object
72 --> $DIR/trait-alias-no-extra-traits.rs:37:22
77 | additional non-auto trait
78 | first non-auto trait
80 | -- referenced here (first use)
82 LL | type _T11 = dyn _3 + _2;
83 | -- ^^ trait alias used in trait object type (additional use)
85 | trait alias used in trait object type (first use)
87 error[E0225]: only auto traits can be used as additional traits in a trait object
88 --> $DIR/trait-alias-no-extra-traits.rs:40:22
93 | additional non-auto trait
94 | first non-auto trait
96 | -- referenced here (additional use)
98 | -- referenced here (additional use)
100 LL | type _T12 = dyn _2 + _4;
101 | -- ^^ trait alias used in trait object type (additional use)
103 | trait alias used in trait object type (first use)
105 error[E0225]: only auto traits can be used as additional traits in a trait object
106 --> $DIR/trait-alias-no-extra-traits.rs:43:22
108 LL | trait _2 = ObjB;
111 | additional non-auto trait
112 | first non-auto trait
114 | -- referenced here (first use)
116 | -- referenced here (first use)
118 LL | type _T13 = dyn _4 + _2;
119 | -- ^^ trait alias used in trait object type (additional use)
121 | trait alias used in trait object type (first use)
123 error[E0225]: only auto traits can be used as additional traits in a trait object
124 --> $DIR/trait-alias-no-extra-traits.rs:50:22
126 LL | trait _0 = ObjA;
127 | ---- additional non-auto trait
129 | -- referenced here (additional use)
131 LL | trait _5 = Sync + ObjB + Send;
132 | ---- first non-auto trait
134 LL | type _T20 = dyn _5 + _1;
135 | -- ^^ trait alias used in trait object type (additional use)
137 | trait alias used in trait object type (first use)
139 error[E0225]: only auto traits can be used as additional traits in a trait object
140 --> $DIR/trait-alias-no-extra-traits.rs:53:22
142 LL | trait _0 = ObjA;
143 | ---- first non-auto trait
145 | -- referenced here (first use)
147 LL | trait _5 = Sync + ObjB + Send;
148 | ---- additional non-auto trait
150 LL | type _T21 = dyn _1 + _5;
151 | -- ^^ trait alias used in trait object type (additional use)
153 | trait alias used in trait object type (first use)
155 error[E0225]: only auto traits can be used as additional traits in a trait object
156 --> $DIR/trait-alias-no-extra-traits.rs:56:22
158 LL | trait _5 = Sync + ObjB + Send;
159 | ---- first non-auto trait
161 LL | type _T22 = dyn _5 + ObjA;
164 | | additional non-auto trait
165 | | trait alias used in trait object type (additional use)
166 | trait alias used in trait object type (first use)
168 error[E0225]: only auto traits can be used as additional traits in a trait object
169 --> $DIR/trait-alias-no-extra-traits.rs:59:24
171 LL | trait _5 = Sync + ObjB + Send;
172 | ---- additional non-auto trait
174 LL | type _T23 = dyn ObjA + _5;
175 | ---- ^^ trait alias used in trait object type (additional use)
177 | first non-auto trait
178 | trait alias used in trait object type (first use)
180 error[E0225]: only auto traits can be used as additional traits in a trait object
181 --> $DIR/trait-alias-no-extra-traits.rs:62:29
183 LL | trait _0 = ObjA;
184 | ---- additional non-auto trait
186 | -- referenced here (additional use)
188 LL | trait _5 = Sync + ObjB + Send;
189 | ---- first non-auto trait
191 LL | type _T24 = dyn Send + _5 + _1 + Sync;
192 | -- ^^ trait alias used in trait object type (additional use)
194 | trait alias used in trait object type (first use)
196 error[E0225]: only auto traits can be used as additional traits in a trait object
197 --> $DIR/trait-alias-no-extra-traits.rs:65:29
199 LL | trait _0 = ObjA;
200 | ---- first non-auto trait
202 | -- referenced here (first use)
204 LL | trait _5 = Sync + ObjB + Send;
205 | ---- additional non-auto trait
207 LL | type _T25 = dyn _1 + Sync + _5 + Send;
208 | -- ^^ trait alias used in trait object type (additional use)
210 | trait alias used in trait object type (first use)
212 error[E0225]: only auto traits can be used as additional traits in a trait object
213 --> $DIR/trait-alias-no-extra-traits.rs:68:36
215 LL | trait _5 = Sync + ObjB + Send;
216 | ---- first non-auto trait
218 LL | type _T26 = dyn Sync + Send + _5 + ObjA;
221 | | additional non-auto trait
222 | | trait alias used in trait object type (additional use)
223 | trait alias used in trait object type (first use)
225 error[E0225]: only auto traits can be used as additional traits in a trait object
226 --> $DIR/trait-alias-no-extra-traits.rs:71:38
228 LL | trait _5 = Sync + ObjB + Send;
229 | ---- additional non-auto trait
231 LL | type _T27 = dyn Send + Sync + ObjA + _5;
232 | ---- ^^ trait alias used in trait object type (additional use)
234 | first non-auto trait
235 | trait alias used in trait object type (first use)
237 error[E0225]: only auto traits can be used as additional traits in a trait object
238 --> $DIR/trait-alias-no-extra-traits.rs:80:17
240 LL | trait _0 = ObjA;
241 | ---- first non-auto trait
243 | -- referenced here (first use)
245 LL | trait _5 = Sync + ObjB + Send;
246 | ---- additional non-auto trait
248 LL | trait _6 = _1 + _5;
249 | -- -- referenced here (additional use)
251 | referenced here (first use)
253 LL | type _T30 = dyn _6;
256 | trait alias used in trait object type (additional use)
257 | trait alias used in trait object type (first use)
259 error[E0225]: only auto traits can be used as additional traits in a trait object
260 --> $DIR/trait-alias-no-extra-traits.rs:83:17
262 LL | trait _0 = ObjA;
263 | ---- first non-auto trait
265 | -- referenced here (first use)
267 LL | trait _5 = Sync + ObjB + Send;
268 | ---- additional non-auto trait
270 LL | trait _6 = _1 + _5;
271 | -- -- referenced here (additional use)
273 | referenced here (first use)
275 LL | type _T31 = dyn _6 + Send;
278 | trait alias used in trait object type (additional use)
279 | trait alias used in trait object type (first use)
281 error[E0225]: only auto traits can be used as additional traits in a trait object
282 --> $DIR/trait-alias-no-extra-traits.rs:86:24
284 LL | trait _0 = ObjA;
285 | ---- first non-auto trait
287 | -- referenced here (first use)
289 LL | trait _5 = Sync + ObjB + Send;
290 | ---- additional non-auto trait
292 LL | trait _6 = _1 + _5;
293 | -- -- referenced here (additional use)
295 | referenced here (first use)
297 LL | type _T32 = dyn Send + _6;
300 | trait alias used in trait object type (additional use)
301 | trait alias used in trait object type (first use)
303 error[E0225]: only auto traits can be used as additional traits in a trait object
304 --> $DIR/trait-alias-no-extra-traits.rs:89:17
306 LL | trait _0 = ObjA;
307 | ---- first non-auto trait
309 | -- referenced here (first use)
311 LL | trait _5 = Sync + ObjB + Send;
312 | ---- additional non-auto trait
314 LL | trait _6 = _1 + _5;
315 | -- -- referenced here (additional use)
317 | referenced here (first use)
321 | referenced here (additional use)
322 | referenced here (first use)
326 | referenced here (additional use)
327 | referenced here (first use)
329 LL | type _T33 = dyn _8;
332 | trait alias used in trait object type (additional use)
333 | trait alias used in trait object type (first use)
335 error[E0225]: only auto traits can be used as additional traits in a trait object
336 --> $DIR/trait-alias-no-extra-traits.rs:92:17
338 LL | trait _0 = ObjA;
339 | ---- first non-auto trait
341 | -- referenced here (first use)
343 LL | trait _5 = Sync + ObjB + Send;
344 | ---- additional non-auto trait
346 LL | trait _6 = _1 + _5;
347 | -- -- referenced here (additional use)
349 | referenced here (first use)
353 | referenced here (additional use)
354 | referenced here (first use)
358 | referenced here (additional use)
359 | referenced here (first use)
361 LL | type _T34 = dyn _8 + Send;
364 | trait alias used in trait object type (additional use)
365 | trait alias used in trait object type (first use)
367 error[E0225]: only auto traits can be used as additional traits in a trait object
368 --> $DIR/trait-alias-no-extra-traits.rs:95:24
370 LL | trait _0 = ObjA;
371 | ---- first non-auto trait
373 | -- referenced here (first use)
375 LL | trait _5 = Sync + ObjB + Send;
376 | ---- additional non-auto trait
378 LL | trait _6 = _1 + _5;
379 | -- -- referenced here (additional use)
381 | referenced here (first use)
385 | referenced here (additional use)
386 | referenced here (first use)
390 | referenced here (additional use)
391 | referenced here (first use)
393 LL | type _T35 = dyn Send + _8;
396 | trait alias used in trait object type (additional use)
397 | trait alias used in trait object type (first use)
399 error[E0225]: only auto traits can be used as additional traits in a trait object
400 --> $DIR/trait-alias-no-extra-traits.rs:103:23
402 LL | trait _5 = Sync + ObjB + Send;
403 | ---- first non-auto trait
405 LL | trait _9 = _5 + Sync;
406 | -- referenced here (first use)
407 LL | trait _10 = Unpin + _9;
408 | -- referenced here (first use)
410 LL | type _T40 = dyn _10 + ObjA;
413 | | additional non-auto trait
414 | | trait alias used in trait object type (additional use)
415 | trait alias used in trait object type (first use)
417 error[E0225]: only auto traits can be used as additional traits in a trait object
418 --> $DIR/trait-alias-no-extra-traits.rs:106:24
420 LL | trait _5 = Sync + ObjB + Send;
421 | ---- additional non-auto trait
423 LL | trait _9 = _5 + Sync;
424 | -- referenced here (additional use)
425 LL | trait _10 = Unpin + _9;
426 | -- referenced here (additional use)
428 LL | type _T41 = dyn ObjA + _10;
429 | ---- ^^^ trait alias used in trait object type (additional use)
431 | first non-auto trait
432 | trait alias used in trait object type (first use)
434 error[E0225]: only auto traits can be used as additional traits in a trait object
435 --> $DIR/trait-alias-no-extra-traits.rs:109:23
437 LL | trait _0 = ObjA;
438 | ---- additional non-auto trait
440 | -- referenced here (additional use)
442 LL | trait _5 = Sync + ObjB + Send;
443 | ---- first non-auto trait
445 LL | trait _9 = _5 + Sync;
446 | -- referenced here (first use)
447 LL | trait _10 = Unpin + _9;
448 | -- referenced here (first use)
450 LL | type _T42 = dyn _10 + _1;
451 | --- ^^ trait alias used in trait object type (additional use)
453 | trait alias used in trait object type (first use)
455 error[E0225]: only auto traits can be used as additional traits in a trait object
456 --> $DIR/trait-alias-no-extra-traits.rs:112:37
458 LL | trait _5 = Sync + ObjB + Send;
459 | ---- first non-auto trait
461 LL | trait _9 = _5 + Sync;
462 | -- referenced here (first use)
463 LL | trait _10 = Unpin + _9;
464 | -- referenced here (first use)
466 LL | type _T43 = dyn Send + _10 + Sync + ObjA;
469 | | additional non-auto trait
470 | | trait alias used in trait object type (additional use)
471 | trait alias used in trait object type (first use)
473 error[E0225]: only auto traits can be used as additional traits in a trait object
474 --> $DIR/trait-alias-no-extra-traits.rs:115:24
476 LL | trait _5 = Sync + ObjB + Send;
477 | ---- additional non-auto trait
479 LL | trait _9 = _5 + Sync;
480 | -- referenced here (additional use)
481 LL | trait _10 = Unpin + _9;
482 | -- referenced here (additional use)
484 LL | type _T44 = dyn ObjA + _10 + Send + Sync;
485 | ---- ^^^ trait alias used in trait object type (additional use)
487 | first non-auto trait
488 | trait alias used in trait object type (first use)
490 error[E0225]: only auto traits can be used as additional traits in a trait object
491 --> $DIR/trait-alias-no-extra-traits.rs:118:37
493 LL | trait _0 = ObjA;
494 | ---- additional non-auto trait
496 | -- referenced here (additional use)
498 LL | trait _5 = Sync + ObjB + Send;
499 | ---- first non-auto trait
501 LL | trait _9 = _5 + Sync;
502 | -- referenced here (first use)
503 LL | trait _10 = Unpin + _9;
504 | -- referenced here (first use)
506 LL | type _T45 = dyn Sync + Send + _10 + _1;
507 | --- ^^ trait alias used in trait object type (additional use)
509 | trait alias used in trait object type (first use)
511 error: aborting due to 28 previous errors
513 For more information about this error, try `rustc --explain E0225`.