1 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
2 --> $DIR/wrong-number-of-args.rs:6:14
4 LL | type B = Ty<'static>;
5 | ^^--------- help: remove these generics
7 | expected 0 lifetime arguments
9 note: struct defined here, with 0 lifetime parameters
10 --> $DIR/wrong-number-of-args.rs:2:12
15 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
16 --> $DIR/wrong-number-of-args.rs:10:14
18 LL | type C = Ty<'static, usize>;
19 | ^^ ------- help: remove this lifetime argument
21 | expected 0 lifetime arguments
23 note: struct defined here, with 0 lifetime parameters
24 --> $DIR/wrong-number-of-args.rs:2:12
29 error[E0107]: this struct takes 0 generic arguments but 1 generic argument was supplied
30 --> $DIR/wrong-number-of-args.rs:10:14
32 LL | type C = Ty<'static, usize>;
33 | ^^ ----- help: remove this generic argument
35 | expected 0 generic arguments
37 note: struct defined here, with 0 generic parameters
38 --> $DIR/wrong-number-of-args.rs:2:12
43 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
44 --> $DIR/wrong-number-of-args.rs:16:14
46 LL | type D = Ty<'static, usize, { 0 }>;
47 | ^^ ------- help: remove this lifetime argument
49 | expected 0 lifetime arguments
51 note: struct defined here, with 0 lifetime parameters
52 --> $DIR/wrong-number-of-args.rs:2:12
57 error[E0107]: this struct takes 0 generic arguments but 2 generic arguments were supplied
58 --> $DIR/wrong-number-of-args.rs:16:14
60 LL | type D = Ty<'static, usize, { 0 }>;
61 | ^^ ------------ help: remove these generic arguments
63 | expected 0 generic arguments
65 note: struct defined here, with 0 generic parameters
66 --> $DIR/wrong-number-of-args.rs:2:12
71 error[E0107]: missing generics for struct `type_and_type::Ty`
72 --> $DIR/wrong-number-of-args.rs:26:14
75 | ^^ expected 2 generic arguments
77 note: struct defined here, with 2 generic parameters: `A`, `B`
78 --> $DIR/wrong-number-of-args.rs:24:12
82 help: add missing generic arguments
84 LL | type A = Ty<A, B>;
87 error[E0107]: this struct takes 2 generic arguments but 1 generic argument was supplied
88 --> $DIR/wrong-number-of-args.rs:30:14
90 LL | type B = Ty<usize>;
91 | ^^ ----- supplied 1 generic argument
93 | expected 2 generic arguments
95 note: struct defined here, with 2 generic parameters: `A`, `B`
96 --> $DIR/wrong-number-of-args.rs:24:12
100 help: add missing generic argument
102 LL | type B = Ty<usize, B>;
105 error[E0107]: this struct takes 2 generic arguments but 3 generic arguments were supplied
106 --> $DIR/wrong-number-of-args.rs:36:14
108 LL | type D = Ty<usize, String, char>;
109 | ^^ ---- help: remove this generic argument
111 | expected 2 generic arguments
113 note: struct defined here, with 2 generic parameters: `A`, `B`
114 --> $DIR/wrong-number-of-args.rs:24:12
116 LL | struct Ty<A, B>;
119 error[E0107]: this struct takes 2 generic arguments but 0 generic arguments were supplied
120 --> $DIR/wrong-number-of-args.rs:40:14
123 | ^^ expected 2 generic arguments
125 note: struct defined here, with 2 generic parameters: `A`, `B`
126 --> $DIR/wrong-number-of-args.rs:24:12
128 LL | struct Ty<A, B>;
130 help: add missing generic arguments
132 LL | type E = Ty<A, B>;
135 error[E0107]: missing generics for struct `lifetime_and_type::Ty`
136 --> $DIR/wrong-number-of-args.rs:48:14
139 | ^^ expected 1 generic argument
141 note: struct defined here, with 1 generic parameter: `T`
142 --> $DIR/wrong-number-of-args.rs:46:12
144 LL | struct Ty<'a, T>;
146 help: add missing generic argument
151 error[E0106]: missing lifetime specifier
152 --> $DIR/wrong-number-of-args.rs:48:14
155 | ^^ expected named lifetime parameter
157 help: consider introducing a named lifetime parameter
159 LL | type A<'a> = Ty<'a>;
162 error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
163 --> $DIR/wrong-number-of-args.rs:54:14
165 LL | type B = Ty<'static>;
166 | ^^ expected 1 generic argument
168 note: struct defined here, with 1 generic parameter: `T`
169 --> $DIR/wrong-number-of-args.rs:46:12
171 LL | struct Ty<'a, T>;
173 help: add missing generic argument
175 LL | type B = Ty<'static, T>;
178 error[E0106]: missing lifetime specifier
179 --> $DIR/wrong-number-of-args.rs:58:17
181 LL | type C = Ty<usize>;
182 | ^ expected named lifetime parameter
184 help: consider introducing a named lifetime parameter
186 LL | type C<'a> = Ty<'a, usize>;
189 error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
190 --> $DIR/wrong-number-of-args.rs:64:14
193 | ^^ expected 1 generic argument
195 note: struct defined here, with 1 generic parameter: `T`
196 --> $DIR/wrong-number-of-args.rs:46:12
198 LL | struct Ty<'a, T>;
200 help: add missing generic argument
205 error[E0106]: missing lifetime specifier
206 --> $DIR/wrong-number-of-args.rs:64:16
209 | ^- expected named lifetime parameter
211 help: consider introducing a named lifetime parameter
213 LL | type E<'a> = Ty<'a>;
216 error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
217 --> $DIR/wrong-number-of-args.rs:70:14
219 LL | type F = Ty<'static, usize, 'static, usize>;
220 | ^^ ------- help: remove this lifetime argument
222 | expected 1 lifetime argument
224 note: struct defined here, with 1 lifetime parameter: `'a`
225 --> $DIR/wrong-number-of-args.rs:46:12
227 LL | struct Ty<'a, T>;
230 error[E0107]: this struct takes 1 generic argument but 2 generic arguments were supplied
231 --> $DIR/wrong-number-of-args.rs:70:14
233 LL | type F = Ty<'static, usize, 'static, usize>;
234 | ^^ ----- help: remove this generic argument
236 | expected 1 generic argument
238 note: struct defined here, with 1 generic parameter: `T`
239 --> $DIR/wrong-number-of-args.rs:46:12
241 LL | struct Ty<'a, T>;
244 error[E0107]: missing generics for struct `type_and_type_and_type::Ty`
245 --> $DIR/wrong-number-of-args.rs:80:14
248 | ^^ expected at least 2 generic arguments
250 note: struct defined here, with at least 2 generic parameters: `A`, `B`
251 --> $DIR/wrong-number-of-args.rs:78:12
253 LL | struct Ty<A, B, C = &'static str>;
255 help: add missing generic arguments
257 LL | type A = Ty<A, B>;
260 error[E0107]: this struct takes at least 2 generic arguments but 1 generic argument was supplied
261 --> $DIR/wrong-number-of-args.rs:84:14
263 LL | type B = Ty<usize>;
264 | ^^ ----- supplied 1 generic argument
266 | expected at least 2 generic arguments
268 note: struct defined here, with at least 2 generic parameters: `A`, `B`
269 --> $DIR/wrong-number-of-args.rs:78:12
271 LL | struct Ty<A, B, C = &'static str>;
273 help: add missing generic argument
275 LL | type B = Ty<usize, B>;
278 error[E0107]: this struct takes at most 3 generic arguments but 4 generic arguments were supplied
279 --> $DIR/wrong-number-of-args.rs:92:14
281 LL | type E = Ty<usize, String, char, f64>;
282 | ^^ --- help: remove this generic argument
284 | expected at most 3 generic arguments
286 note: struct defined here, with at most 3 generic parameters: `A`, `B`, `C`
287 --> $DIR/wrong-number-of-args.rs:78:12
289 LL | struct Ty<A, B, C = &'static str>;
292 error[E0107]: this struct takes at least 2 generic arguments but 0 generic arguments were supplied
293 --> $DIR/wrong-number-of-args.rs:96:14
296 | ^^ expected at least 2 generic arguments
298 note: struct defined here, with at least 2 generic parameters: `A`, `B`
299 --> $DIR/wrong-number-of-args.rs:78:12
301 LL | struct Ty<A, B, C = &'static str>;
303 help: add missing generic arguments
305 LL | type F = Ty<A, B>;
308 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
309 --> $DIR/wrong-number-of-args.rs:116:22
311 LL | type A = Box<dyn NonGeneric<usize>>;
312 | ^^^^^^^^^^------- help: remove these generics
314 | expected 0 generic arguments
316 note: trait defined here, with 0 generic parameters
317 --> $DIR/wrong-number-of-args.rs:104:11
319 LL | trait NonGeneric {
322 error[E0106]: missing lifetime specifier
323 --> $DIR/wrong-number-of-args.rs:120:22
325 LL | type B = Box<dyn GenericLifetime>;
326 | ^^^^^^^^^^^^^^^ expected named lifetime parameter
328 help: consider introducing a named lifetime parameter
330 LL | type B<'a> = Box<dyn GenericLifetime<'a>>;
331 | ++++ ~~~~~~~~~~~~~~~~~~~
333 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
334 --> $DIR/wrong-number-of-args.rs:124:22
336 LL | type C = Box<dyn GenericLifetime<'static, 'static>>;
337 | ^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
339 | expected 1 lifetime argument
341 note: trait defined here, with 1 lifetime parameter: `'a`
342 --> $DIR/wrong-number-of-args.rs:108:11
344 LL | trait GenericLifetime<'a> {
347 error[E0107]: missing generics for trait `GenericType`
348 --> $DIR/wrong-number-of-args.rs:128:22
350 LL | type D = Box<dyn GenericType>;
351 | ^^^^^^^^^^^ expected 1 generic argument
353 note: trait defined here, with 1 generic parameter: `A`
354 --> $DIR/wrong-number-of-args.rs:112:11
356 LL | trait GenericType<A> {
358 help: add missing generic argument
360 LL | type D = Box<dyn GenericType<A>>;
363 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
364 --> $DIR/wrong-number-of-args.rs:132:22
366 LL | type E = Box<dyn GenericType<String, usize>>;
367 | ^^^^^^^^^^^ ----- help: remove this generic argument
369 | expected 1 generic argument
371 note: trait defined here, with 1 generic parameter: `A`
372 --> $DIR/wrong-number-of-args.rs:112:11
374 LL | trait GenericType<A> {
377 error[E0106]: missing lifetime specifier
378 --> $DIR/wrong-number-of-args.rs:136:37
380 LL | type F = Box<dyn GenericLifetime<>>;
381 | ^- expected named lifetime parameter
383 help: consider introducing a named lifetime parameter
385 LL | type F<'a> = Box<dyn GenericLifetime<'a>>;
388 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
389 --> $DIR/wrong-number-of-args.rs:140:22
391 LL | type G = Box<dyn GenericType<>>;
392 | ^^^^^^^^^^^ expected 1 generic argument
394 note: trait defined here, with 1 generic parameter: `A`
395 --> $DIR/wrong-number-of-args.rs:112:11
397 LL | trait GenericType<A> {
399 help: add missing generic argument
401 LL | type G = Box<dyn GenericType<A>>;
404 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
405 --> $DIR/wrong-number-of-args.rs:151:26
407 LL | type A = Box<dyn NonGenericAT<usize, AssocTy=()>>;
408 | ^^^^^^^^^^^^------------------- help: remove these generics
410 | expected 0 generic arguments
412 note: trait defined here, with 0 generic parameters
413 --> $DIR/wrong-number-of-args.rs:147:15
415 LL | trait NonGenericAT {
418 error[E0106]: missing lifetime specifier
419 --> $DIR/wrong-number-of-args.rs:161:44
421 LL | type A = Box<dyn GenericLifetimeAT<AssocTy=()>>;
422 | ^ expected named lifetime parameter
424 help: consider introducing a named lifetime parameter
426 LL | type A<'a> = Box<dyn GenericLifetimeAT<'a, AssocTy=()>>;
429 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
430 --> $DIR/wrong-number-of-args.rs:165:26
432 LL | type B = Box<dyn GenericLifetimeAT<'static, 'static, AssocTy=()>>;
433 | ^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
435 | expected 1 lifetime argument
437 note: trait defined here, with 1 lifetime parameter: `'a`
438 --> $DIR/wrong-number-of-args.rs:157:15
440 LL | trait GenericLifetimeAT<'a> {
441 | ^^^^^^^^^^^^^^^^^ --
443 error[E0106]: missing lifetime specifier
444 --> $DIR/wrong-number-of-args.rs:169:44
446 LL | type C = Box<dyn GenericLifetimeAT<(), AssocTy=()>>;
447 | ^ expected named lifetime parameter
449 help: consider introducing a named lifetime parameter
451 LL | type C<'a> = Box<dyn GenericLifetimeAT<'a, (), AssocTy=()>>;
454 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
455 --> $DIR/wrong-number-of-args.rs:169:26
457 LL | type C = Box<dyn GenericLifetimeAT<(), AssocTy=()>>;
458 | ^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
460 | expected 0 generic arguments
462 note: trait defined here, with 0 generic parameters
463 --> $DIR/wrong-number-of-args.rs:157:15
465 LL | trait GenericLifetimeAT<'a> {
468 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
469 --> $DIR/wrong-number-of-args.rs:181:26
471 LL | type A = Box<dyn GenericTypeAT<AssocTy=()>>;
472 | ^^^^^^^^^^^^^ expected 1 generic argument
474 note: trait defined here, with 1 generic parameter: `A`
475 --> $DIR/wrong-number-of-args.rs:177:15
477 LL | trait GenericTypeAT<A> {
479 help: add missing generic argument
481 LL | type A = Box<dyn GenericTypeAT<A, AssocTy=()>>;
484 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
485 --> $DIR/wrong-number-of-args.rs:185:26
487 LL | type B = Box<dyn GenericTypeAT<(), (), AssocTy=()>>;
488 | ^^^^^^^^^^^^^ -- help: remove this generic argument
490 | expected 1 generic argument
492 note: trait defined here, with 1 generic parameter: `A`
493 --> $DIR/wrong-number-of-args.rs:177:15
495 LL | trait GenericTypeAT<A> {
498 error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
499 --> $DIR/wrong-number-of-args.rs:189:26
501 LL | type C = Box<dyn GenericTypeAT<'static, AssocTy=()>>;
502 | ^^^^^^^^^^^^^--------------------- help: remove these generics
504 | expected 0 lifetime arguments
506 note: trait defined here, with 0 lifetime parameters
507 --> $DIR/wrong-number-of-args.rs:177:15
509 LL | trait GenericTypeAT<A> {
512 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
513 --> $DIR/wrong-number-of-args.rs:189:26
515 LL | type C = Box<dyn GenericTypeAT<'static, AssocTy=()>>;
516 | ^^^^^^^^^^^^^ expected 1 generic argument
518 note: trait defined here, with 1 generic parameter: `A`
519 --> $DIR/wrong-number-of-args.rs:177:15
521 LL | trait GenericTypeAT<A> {
523 help: add missing generic argument
525 LL | type C = Box<dyn GenericTypeAT<'static, A, AssocTy=()>>;
528 error[E0106]: missing lifetime specifier
529 --> $DIR/wrong-number-of-args.rs:201:48
531 LL | type A = Box<dyn GenericLifetimeTypeAT<AssocTy=()>>;
532 | ^ expected named lifetime parameter
534 help: consider introducing a named lifetime parameter
536 LL | type A<'a> = Box<dyn GenericLifetimeTypeAT<'a, AssocTy=()>>;
539 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
540 --> $DIR/wrong-number-of-args.rs:201:26
542 LL | type A = Box<dyn GenericLifetimeTypeAT<AssocTy=()>>;
543 | ^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
545 note: trait defined here, with 1 generic parameter: `A`
546 --> $DIR/wrong-number-of-args.rs:197:15
548 LL | trait GenericLifetimeTypeAT<'a, A> {
549 | ^^^^^^^^^^^^^^^^^^^^^ -
550 help: add missing generic argument
552 LL | type A = Box<dyn GenericLifetimeTypeAT<A, AssocTy=()>>;
555 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
556 --> $DIR/wrong-number-of-args.rs:207:26
558 LL | type B = Box<dyn GenericLifetimeTypeAT<'static, AssocTy=()>>;
559 | ^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
561 note: trait defined here, with 1 generic parameter: `A`
562 --> $DIR/wrong-number-of-args.rs:197:15
564 LL | trait GenericLifetimeTypeAT<'a, A> {
565 | ^^^^^^^^^^^^^^^^^^^^^ -
566 help: add missing generic argument
568 LL | type B = Box<dyn GenericLifetimeTypeAT<'static, A, AssocTy=()>>;
571 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
572 --> $DIR/wrong-number-of-args.rs:211:26
574 LL | type C = Box<dyn GenericLifetimeTypeAT<'static, 'static, AssocTy=()>>;
575 | ^^^^^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
577 | expected 1 lifetime argument
579 note: trait defined here, with 1 lifetime parameter: `'a`
580 --> $DIR/wrong-number-of-args.rs:197:15
582 LL | trait GenericLifetimeTypeAT<'a, A> {
583 | ^^^^^^^^^^^^^^^^^^^^^ --
585 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
586 --> $DIR/wrong-number-of-args.rs:211:26
588 LL | type C = Box<dyn GenericLifetimeTypeAT<'static, 'static, AssocTy=()>>;
589 | ^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
591 note: trait defined here, with 1 generic parameter: `A`
592 --> $DIR/wrong-number-of-args.rs:197:15
594 LL | trait GenericLifetimeTypeAT<'a, A> {
595 | ^^^^^^^^^^^^^^^^^^^^^ -
596 help: add missing generic argument
598 LL | type C = Box<dyn GenericLifetimeTypeAT<'static, 'static, A, AssocTy=()>>;
601 error[E0106]: missing lifetime specifier
602 --> $DIR/wrong-number-of-args.rs:217:48
604 LL | type D = Box<dyn GenericLifetimeTypeAT<(), AssocTy=()>>;
605 | ^ expected named lifetime parameter
607 help: consider introducing a named lifetime parameter
609 LL | type D<'a> = Box<dyn GenericLifetimeTypeAT<'a, (), AssocTy=()>>;
612 error[E0106]: missing lifetime specifier
613 --> $DIR/wrong-number-of-args.rs:221:48
615 LL | type E = Box<dyn GenericLifetimeTypeAT<(), (), AssocTy=()>>;
616 | ^ expected named lifetime parameter
618 help: consider introducing a named lifetime parameter
620 LL | type E<'a> = Box<dyn GenericLifetimeTypeAT<'a, (), (), AssocTy=()>>;
623 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
624 --> $DIR/wrong-number-of-args.rs:221:26
626 LL | type E = Box<dyn GenericLifetimeTypeAT<(), (), AssocTy=()>>;
627 | ^^^^^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
629 | expected 1 generic argument
631 note: trait defined here, with 1 generic parameter: `A`
632 --> $DIR/wrong-number-of-args.rs:197:15
634 LL | trait GenericLifetimeTypeAT<'a, A> {
635 | ^^^^^^^^^^^^^^^^^^^^^ -
637 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
638 --> $DIR/wrong-number-of-args.rs:227:26
640 LL | type F = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), AssocTy=()>>;
641 | ^^^^^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
643 | expected 1 lifetime argument
645 note: trait defined here, with 1 lifetime parameter: `'a`
646 --> $DIR/wrong-number-of-args.rs:197:15
648 LL | trait GenericLifetimeTypeAT<'a, A> {
649 | ^^^^^^^^^^^^^^^^^^^^^ --
651 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
652 --> $DIR/wrong-number-of-args.rs:231:26
654 LL | type G = Box<dyn GenericLifetimeTypeAT<'static, (), (), AssocTy=()>>;
655 | ^^^^^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
657 | expected 1 generic argument
659 note: trait defined here, with 1 generic parameter: `A`
660 --> $DIR/wrong-number-of-args.rs:197:15
662 LL | trait GenericLifetimeTypeAT<'a, A> {
663 | ^^^^^^^^^^^^^^^^^^^^^ -
665 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
666 --> $DIR/wrong-number-of-args.rs:235:26
668 LL | type H = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), (), AssocTy=()>>;
669 | ^^^^^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
671 | expected 1 lifetime argument
673 note: trait defined here, with 1 lifetime parameter: `'a`
674 --> $DIR/wrong-number-of-args.rs:197:15
676 LL | trait GenericLifetimeTypeAT<'a, A> {
677 | ^^^^^^^^^^^^^^^^^^^^^ --
679 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
680 --> $DIR/wrong-number-of-args.rs:235:26
682 LL | type H = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), (), AssocTy=()>>;
683 | ^^^^^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
685 | expected 1 generic argument
687 note: trait defined here, with 1 generic parameter: `A`
688 --> $DIR/wrong-number-of-args.rs:197:15
690 LL | trait GenericLifetimeTypeAT<'a, A> {
691 | ^^^^^^^^^^^^^^^^^^^^^ -
693 error[E0107]: this trait takes 2 generic arguments but 0 generic arguments were supplied
694 --> $DIR/wrong-number-of-args.rs:247:26
696 LL | type A = Box<dyn GenericTypeTypeAT<AssocTy=()>>;
697 | ^^^^^^^^^^^^^^^^^ expected 2 generic arguments
699 note: trait defined here, with 2 generic parameters: `A`, `B`
700 --> $DIR/wrong-number-of-args.rs:243:15
702 LL | trait GenericTypeTypeAT<A, B> {
703 | ^^^^^^^^^^^^^^^^^ - -
704 help: add missing generic arguments
706 LL | type A = Box<dyn GenericTypeTypeAT<A, B, AssocTy=()>>;
709 error[E0107]: this trait takes 2 generic arguments but 1 generic argument was supplied
710 --> $DIR/wrong-number-of-args.rs:251:26
712 LL | type B = Box<dyn GenericTypeTypeAT<(), AssocTy=()>>;
713 | ^^^^^^^^^^^^^^^^^ -- supplied 1 generic argument
715 | expected 2 generic arguments
717 note: trait defined here, with 2 generic parameters: `A`, `B`
718 --> $DIR/wrong-number-of-args.rs:243:15
720 LL | trait GenericTypeTypeAT<A, B> {
721 | ^^^^^^^^^^^^^^^^^ - -
722 help: add missing generic argument
724 LL | type B = Box<dyn GenericTypeTypeAT<(), B, AssocTy=()>>;
727 error[E0107]: this trait takes 2 generic arguments but 3 generic arguments were supplied
728 --> $DIR/wrong-number-of-args.rs:255:26
730 LL | type C = Box<dyn GenericTypeTypeAT<(), (), (), AssocTy=()>>;
731 | ^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
733 | expected 2 generic arguments
735 note: trait defined here, with 2 generic parameters: `A`, `B`
736 --> $DIR/wrong-number-of-args.rs:243:15
738 LL | trait GenericTypeTypeAT<A, B> {
739 | ^^^^^^^^^^^^^^^^^ - -
741 error[E0106]: missing lifetime specifiers
742 --> $DIR/wrong-number-of-args.rs:265:52
744 LL | type A = Box<dyn GenericLifetimeLifetimeAT<AssocTy=()>>;
745 | ^ expected 2 lifetime parameters
747 help: consider introducing a named lifetime parameter
749 LL | type A<'a> = Box<dyn GenericLifetimeLifetimeAT<'a, 'a, AssocTy=()>>;
752 error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
753 --> $DIR/wrong-number-of-args.rs:269:26
755 LL | type B = Box<dyn GenericLifetimeLifetimeAT<'static, AssocTy=()>>;
756 | ^^^^^^^^^^^^^^^^^^^^^^^^^ ------- supplied 1 lifetime argument
758 | expected 2 lifetime arguments
760 note: trait defined here, with 2 lifetime parameters: `'a`, `'b`
761 --> $DIR/wrong-number-of-args.rs:261:15
763 LL | trait GenericLifetimeLifetimeAT<'a, 'b> {
764 | ^^^^^^^^^^^^^^^^^^^^^^^^^ -- --
765 help: add missing lifetime argument
767 LL | type B = Box<dyn GenericLifetimeLifetimeAT<'static, 'b, AssocTy=()>>;
770 error[E0106]: missing lifetime specifiers
771 --> $DIR/wrong-number-of-args.rs:279:56
773 LL | type A = Box<dyn GenericLifetimeLifetimeTypeAT<AssocTy=()>>;
774 | ^ expected 2 lifetime parameters
776 help: consider introducing a named lifetime parameter
778 LL | type A<'a> = Box<dyn GenericLifetimeLifetimeTypeAT<'a, 'a, AssocTy=()>>;
781 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
782 --> $DIR/wrong-number-of-args.rs:279:26
784 LL | type A = Box<dyn GenericLifetimeLifetimeTypeAT<AssocTy=()>>;
785 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
787 note: trait defined here, with 1 generic parameter: `A`
788 --> $DIR/wrong-number-of-args.rs:275:15
790 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
791 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
792 help: add missing generic argument
794 LL | type A = Box<dyn GenericLifetimeLifetimeTypeAT<A, AssocTy=()>>;
797 error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
798 --> $DIR/wrong-number-of-args.rs:285:26
800 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, AssocTy=()>>;
801 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------- supplied 1 lifetime argument
803 | expected 2 lifetime arguments
805 note: trait defined here, with 2 lifetime parameters: `'a`, `'b`
806 --> $DIR/wrong-number-of-args.rs:275:15
808 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
809 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- --
810 help: add missing lifetime argument
812 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, 'b, AssocTy=()>>;
815 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
816 --> $DIR/wrong-number-of-args.rs:285:26
818 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, AssocTy=()>>;
819 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
821 note: trait defined here, with 1 generic parameter: `A`
822 --> $DIR/wrong-number-of-args.rs:275:15
824 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
825 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
826 help: add missing generic argument
828 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, A, AssocTy=()>>;
831 error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
832 --> $DIR/wrong-number-of-args.rs:291:26
834 LL | type C = Box<dyn GenericLifetimeLifetimeTypeAT<'static, (), AssocTy=()>>;
835 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------- supplied 1 lifetime argument
837 | expected 2 lifetime arguments
839 note: trait defined here, with 2 lifetime parameters: `'a`, `'b`
840 --> $DIR/wrong-number-of-args.rs:275:15
842 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
843 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- --
844 help: add missing lifetime argument
846 LL | type C = Box<dyn GenericLifetimeLifetimeTypeAT<'static, 'b, (), AssocTy=()>>;
849 error[E0107]: missing generics for struct `HashMap`
850 --> $DIR/wrong-number-of-args.rs:301:18
852 LL | type A = HashMap;
853 | ^^^^^^^ expected at least 2 generic arguments
855 note: struct defined here, with at least 2 generic parameters: `K`, `V`
856 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
858 LL | pub struct HashMap<K, V, S = RandomState> {
860 help: add missing generic arguments
862 LL | type A = HashMap<K, V>;
865 error[E0107]: this struct takes at least 2 generic arguments but 1 generic argument was supplied
866 --> $DIR/wrong-number-of-args.rs:305:18
868 LL | type B = HashMap<String>;
869 | ^^^^^^^ ------ supplied 1 generic argument
871 | expected at least 2 generic arguments
873 note: struct defined here, with at least 2 generic parameters: `K`, `V`
874 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
876 LL | pub struct HashMap<K, V, S = RandomState> {
878 help: add missing generic argument
880 LL | type B = HashMap<String, V>;
883 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
884 --> $DIR/wrong-number-of-args.rs:309:18
886 LL | type C = HashMap<'static>;
887 | ^^^^^^^--------- help: remove these generics
889 | expected 0 lifetime arguments
891 note: struct defined here, with 0 lifetime parameters
892 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
894 LL | pub struct HashMap<K, V, S = RandomState> {
897 error[E0107]: this struct takes at least 2 generic arguments but 0 generic arguments were supplied
898 --> $DIR/wrong-number-of-args.rs:309:18
900 LL | type C = HashMap<'static>;
901 | ^^^^^^^ expected at least 2 generic arguments
903 note: struct defined here, with at least 2 generic parameters: `K`, `V`
904 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
906 LL | pub struct HashMap<K, V, S = RandomState> {
908 help: add missing generic arguments
910 LL | type C = HashMap<'static, K, V>;
913 error[E0107]: this struct takes at most 3 generic arguments but 4 generic arguments were supplied
914 --> $DIR/wrong-number-of-args.rs:315:18
916 LL | type D = HashMap<usize, String, char, f64>;
917 | ^^^^^^^ --- help: remove this generic argument
919 | expected at most 3 generic arguments
921 note: struct defined here, with at most 3 generic parameters: `K`, `V`, `S`
922 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
924 LL | pub struct HashMap<K, V, S = RandomState> {
927 error[E0107]: this struct takes at least 2 generic arguments but 0 generic arguments were supplied
928 --> $DIR/wrong-number-of-args.rs:319:18
930 LL | type E = HashMap<>;
931 | ^^^^^^^ expected at least 2 generic arguments
933 note: struct defined here, with at least 2 generic parameters: `K`, `V`
934 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
936 LL | pub struct HashMap<K, V, S = RandomState> {
938 help: add missing generic arguments
940 LL | type E = HashMap<K, V>;
943 error[E0107]: missing generics for enum `Result`
944 --> $DIR/wrong-number-of-args.rs:325:18
946 LL | type A = Result;
947 | ^^^^^^ expected 2 generic arguments
949 note: enum defined here, with 2 generic parameters: `T`, `E`
950 --> $SRC_DIR/core/src/result.rs:LL:COL
952 LL | pub enum Result<T, E> {
954 help: add missing generic arguments
956 LL | type A = Result<T, E>;
959 error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
960 --> $DIR/wrong-number-of-args.rs:329:18
962 LL | type B = Result<String>;
963 | ^^^^^^ ------ supplied 1 generic argument
965 | expected 2 generic arguments
967 note: enum defined here, with 2 generic parameters: `T`, `E`
968 --> $SRC_DIR/core/src/result.rs:LL:COL
970 LL | pub enum Result<T, E> {
972 help: add missing generic argument
974 LL | type B = Result<String, E>;
977 error[E0107]: this enum takes 0 lifetime arguments but 1 lifetime argument was supplied
978 --> $DIR/wrong-number-of-args.rs:333:18
980 LL | type C = Result<'static>;
981 | ^^^^^^--------- help: remove these generics
983 | expected 0 lifetime arguments
985 note: enum defined here, with 0 lifetime parameters
986 --> $SRC_DIR/core/src/result.rs:LL:COL
988 LL | pub enum Result<T, E> {
991 error[E0107]: this enum takes 2 generic arguments but 0 generic arguments were supplied
992 --> $DIR/wrong-number-of-args.rs:333:18
994 LL | type C = Result<'static>;
995 | ^^^^^^ expected 2 generic arguments
997 note: enum defined here, with 2 generic parameters: `T`, `E`
998 --> $SRC_DIR/core/src/result.rs:LL:COL
1000 LL | pub enum Result<T, E> {
1002 help: add missing generic arguments
1004 LL | type C = Result<'static, T, E>;
1007 error[E0107]: this enum takes 2 generic arguments but 3 generic arguments were supplied
1008 --> $DIR/wrong-number-of-args.rs:339:18
1010 LL | type D = Result<usize, String, char>;
1011 | ^^^^^^ ---- help: remove this generic argument
1013 | expected 2 generic arguments
1015 note: enum defined here, with 2 generic parameters: `T`, `E`
1016 --> $SRC_DIR/core/src/result.rs:LL:COL
1018 LL | pub enum Result<T, E> {
1021 error[E0107]: this enum takes 2 generic arguments but 0 generic arguments were supplied
1022 --> $DIR/wrong-number-of-args.rs:343:18
1024 LL | type E = Result<>;
1025 | ^^^^^^ expected 2 generic arguments
1027 note: enum defined here, with 2 generic parameters: `T`, `E`
1028 --> $SRC_DIR/core/src/result.rs:LL:COL
1030 LL | pub enum Result<T, E> {
1032 help: add missing generic arguments
1034 LL | type E = Result<T, E>;
1037 error: aborting due to 71 previous errors
1039 Some errors have detailed explanations: E0106, E0107.
1040 For more information about an error, try `rustc --explain E0106`.