1 error[E0106]: missing lifetime specifier
2 --> $DIR/wrong-number-of-args.rs:48:14
5 | ^^ expected named lifetime parameter
7 help: consider introducing a named lifetime parameter
9 LL | type A<'a> = Ty<'a>;
12 error[E0106]: missing lifetime specifier
13 --> $DIR/wrong-number-of-args.rs:58:16
15 LL | type C = Ty<usize>;
16 | ^ expected named lifetime parameter
18 help: consider introducing a named lifetime parameter
20 LL | type C<'a> = Ty<'a, usize>;
23 error[E0106]: missing lifetime specifier
24 --> $DIR/wrong-number-of-args.rs:64:16
27 | ^ expected named lifetime parameter
29 help: consider introducing a named lifetime parameter
31 LL | type E<'a> = Ty<'a, >;
34 error[E0106]: missing lifetime specifier
35 --> $DIR/wrong-number-of-args.rs:120:22
37 LL | type B = Box<dyn GenericLifetime>;
38 | ^^^^^^^^^^^^^^^ expected named lifetime parameter
40 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
41 help: consider making the bound lifetime-generic with a new `'a` lifetime
43 LL | type B = Box<dyn for<'a> GenericLifetime<'a>>;
45 help: consider introducing a named lifetime parameter
47 LL | type B<'a> = Box<dyn GenericLifetime<'a>>;
50 error[E0106]: missing lifetime specifier
51 --> $DIR/wrong-number-of-args.rs:137:37
53 LL | type F = Box<dyn GenericLifetime<>>;
54 | ^ expected named lifetime parameter
56 help: consider making the bound lifetime-generic with a new `'a` lifetime
58 LL | type F = Box<dyn for<'a> GenericLifetime<'a, >>;
60 help: consider introducing a named lifetime parameter
62 LL | type F<'a> = Box<dyn GenericLifetime<'a, >>;
65 error[E0106]: missing lifetime specifier
66 --> $DIR/wrong-number-of-args.rs:163:43
68 LL | type A = Box<dyn GenericLifetimeAT<AssocTy=()>>;
69 | ^ expected named lifetime parameter
71 help: consider making the bound lifetime-generic with a new `'a` lifetime
73 LL | type A = Box<dyn for<'a> GenericLifetimeAT<'a, AssocTy=()>>;
75 help: consider introducing a named lifetime parameter
77 LL | type A<'a> = Box<dyn GenericLifetimeAT<'a, AssocTy=()>>;
80 error[E0106]: missing lifetime specifier
81 --> $DIR/wrong-number-of-args.rs:172:43
83 LL | type C = Box<dyn GenericLifetimeAT<(), AssocTy=()>>;
84 | ^ expected named lifetime parameter
86 help: consider making the bound lifetime-generic with a new `'a` lifetime
88 LL | type C = Box<dyn for<'a> GenericLifetimeAT<'a, (), AssocTy=()>>;
90 help: consider introducing a named lifetime parameter
92 LL | type C<'a> = Box<dyn GenericLifetimeAT<'a, (), AssocTy=()>>;
95 error[E0106]: missing lifetime specifier
96 --> $DIR/wrong-number-of-args.rs:205:47
98 LL | type A = Box<dyn GenericLifetimeTypeAT<AssocTy=()>>;
99 | ^ expected named lifetime parameter
101 help: consider making the bound lifetime-generic with a new `'a` lifetime
103 LL | type A = Box<dyn for<'a> GenericLifetimeTypeAT<'a, AssocTy=()>>;
105 help: consider introducing a named lifetime parameter
107 LL | type A<'a> = Box<dyn GenericLifetimeTypeAT<'a, AssocTy=()>>;
110 error[E0106]: missing lifetime specifier
111 --> $DIR/wrong-number-of-args.rs:222:47
113 LL | type D = Box<dyn GenericLifetimeTypeAT<(), AssocTy=()>>;
114 | ^ expected named lifetime parameter
116 help: consider making the bound lifetime-generic with a new `'a` lifetime
118 LL | type D = Box<dyn for<'a> GenericLifetimeTypeAT<'a, (), AssocTy=()>>;
120 help: consider introducing a named lifetime parameter
122 LL | type D<'a> = Box<dyn GenericLifetimeTypeAT<'a, (), AssocTy=()>>;
125 error[E0106]: missing lifetime specifier
126 --> $DIR/wrong-number-of-args.rs:227:47
128 LL | type E = Box<dyn GenericLifetimeTypeAT<(), (), AssocTy=()>>;
129 | ^ expected named lifetime parameter
131 help: consider making the bound lifetime-generic with a new `'a` lifetime
133 LL | type E = Box<dyn for<'a> GenericLifetimeTypeAT<'a, (), (), AssocTy=()>>;
135 help: consider introducing a named lifetime parameter
137 LL | type E<'a> = Box<dyn GenericLifetimeTypeAT<'a, (), (), AssocTy=()>>;
140 error[E0106]: missing lifetime specifiers
141 --> $DIR/wrong-number-of-args.rs:272:51
143 LL | type A = Box<dyn GenericLifetimeLifetimeAT<AssocTy=()>>;
144 | ^ expected 2 lifetime parameters
146 help: consider making the bound lifetime-generic with a new `'a` lifetime
148 LL | type A = Box<dyn for<'a> GenericLifetimeLifetimeAT<'a, 'a, AssocTy=()>>;
150 help: consider introducing a named lifetime parameter
152 LL | type A<'a> = Box<dyn GenericLifetimeLifetimeAT<'a, 'a, AssocTy=()>>;
155 error[E0106]: missing lifetime specifiers
156 --> $DIR/wrong-number-of-args.rs:287:55
158 LL | type A = Box<dyn GenericLifetimeLifetimeTypeAT<AssocTy=()>>;
159 | ^ expected 2 lifetime parameters
161 help: consider making the bound lifetime-generic with a new `'a` lifetime
163 LL | type A = Box<dyn for<'a> GenericLifetimeLifetimeTypeAT<'a, 'a, AssocTy=()>>;
165 help: consider introducing a named lifetime parameter
167 LL | type A<'a> = Box<dyn GenericLifetimeLifetimeTypeAT<'a, 'a, AssocTy=()>>;
170 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
171 --> $DIR/wrong-number-of-args.rs:6:14
173 LL | type B = Ty<'static>;
174 | ^^--------- help: remove these generics
176 | expected 0 lifetime arguments
178 note: struct defined here, with 0 lifetime parameters
179 --> $DIR/wrong-number-of-args.rs:2:12
184 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
185 --> $DIR/wrong-number-of-args.rs:10:14
187 LL | type C = Ty<'static, usize>;
188 | ^^ ------- help: remove this lifetime argument
190 | expected 0 lifetime arguments
192 note: struct defined here, with 0 lifetime parameters
193 --> $DIR/wrong-number-of-args.rs:2:12
198 error[E0107]: this struct takes 0 generic arguments but 1 generic argument was supplied
199 --> $DIR/wrong-number-of-args.rs:10:14
201 LL | type C = Ty<'static, usize>;
202 | ^^ ----- help: remove this generic argument
204 | expected 0 generic arguments
206 note: struct defined here, with 0 generic parameters
207 --> $DIR/wrong-number-of-args.rs:2:12
212 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
213 --> $DIR/wrong-number-of-args.rs:16:14
215 LL | type D = Ty<'static, usize, { 0 }>;
216 | ^^ ------- help: remove this lifetime argument
218 | expected 0 lifetime arguments
220 note: struct defined here, with 0 lifetime parameters
221 --> $DIR/wrong-number-of-args.rs:2:12
226 error[E0107]: this struct takes 0 generic arguments but 2 generic arguments were supplied
227 --> $DIR/wrong-number-of-args.rs:16:14
229 LL | type D = Ty<'static, usize, { 0 }>;
230 | ^^ ------------ help: remove these generic arguments
232 | expected 0 generic arguments
234 note: struct defined here, with 0 generic parameters
235 --> $DIR/wrong-number-of-args.rs:2:12
240 error[E0107]: missing generics for struct `type_and_type::Ty`
241 --> $DIR/wrong-number-of-args.rs:26:14
244 | ^^ expected 2 generic arguments
246 note: struct defined here, with 2 generic parameters: `A`, `B`
247 --> $DIR/wrong-number-of-args.rs:24:12
249 LL | struct Ty<A, B>;
251 help: add missing generic arguments
253 LL | type A = Ty<A, B>;
256 error[E0107]: this struct takes 2 generic arguments but 1 generic argument was supplied
257 --> $DIR/wrong-number-of-args.rs:30:14
259 LL | type B = Ty<usize>;
260 | ^^ ----- supplied 1 generic argument
262 | expected 2 generic arguments
264 note: struct defined here, with 2 generic parameters: `A`, `B`
265 --> $DIR/wrong-number-of-args.rs:24:12
267 LL | struct Ty<A, B>;
269 help: add missing generic argument
271 LL | type B = Ty<usize, B>;
274 error[E0107]: this struct takes 2 generic arguments but 3 generic arguments were supplied
275 --> $DIR/wrong-number-of-args.rs:36:14
277 LL | type D = Ty<usize, String, char>;
278 | ^^ ---- help: remove this generic argument
280 | expected 2 generic arguments
282 note: struct defined here, with 2 generic parameters: `A`, `B`
283 --> $DIR/wrong-number-of-args.rs:24:12
285 LL | struct Ty<A, B>;
288 error[E0107]: this struct takes 2 generic arguments but 0 generic arguments were supplied
289 --> $DIR/wrong-number-of-args.rs:40:14
292 | ^^ expected 2 generic arguments
294 note: struct defined here, with 2 generic parameters: `A`, `B`
295 --> $DIR/wrong-number-of-args.rs:24:12
297 LL | struct Ty<A, B>;
299 help: add missing generic arguments
301 LL | type E = Ty<A, B>;
304 error[E0107]: missing generics for struct `lifetime_and_type::Ty`
305 --> $DIR/wrong-number-of-args.rs:48:14
308 | ^^ expected 1 generic argument
310 note: struct defined here, with 1 generic parameter: `T`
311 --> $DIR/wrong-number-of-args.rs:46:12
313 LL | struct Ty<'a, T>;
315 help: add missing generic argument
320 error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
321 --> $DIR/wrong-number-of-args.rs:54:14
323 LL | type B = Ty<'static>;
324 | ^^ expected 1 generic argument
326 note: struct defined here, with 1 generic parameter: `T`
327 --> $DIR/wrong-number-of-args.rs:46:12
329 LL | struct Ty<'a, T>;
331 help: add missing generic argument
333 LL | type B = Ty<'static, T>;
336 error[E0107]: this struct takes 1 generic argument but 0 generic arguments were supplied
337 --> $DIR/wrong-number-of-args.rs:64:14
340 | ^^ expected 1 generic argument
342 note: struct defined here, with 1 generic parameter: `T`
343 --> $DIR/wrong-number-of-args.rs:46:12
345 LL | struct Ty<'a, T>;
347 help: add missing generic argument
352 error[E0107]: this struct takes 1 lifetime argument but 2 lifetime arguments were supplied
353 --> $DIR/wrong-number-of-args.rs:70:14
355 LL | type F = Ty<'static, usize, 'static, usize>;
356 | ^^ ------- help: remove this lifetime argument
358 | expected 1 lifetime argument
360 note: struct defined here, with 1 lifetime parameter: `'a`
361 --> $DIR/wrong-number-of-args.rs:46:12
363 LL | struct Ty<'a, T>;
366 error[E0107]: this struct takes 1 generic argument but 2 generic arguments were supplied
367 --> $DIR/wrong-number-of-args.rs:70:14
369 LL | type F = Ty<'static, usize, 'static, usize>;
370 | ^^ ----- help: remove this generic argument
372 | expected 1 generic argument
374 note: struct defined here, with 1 generic parameter: `T`
375 --> $DIR/wrong-number-of-args.rs:46:12
377 LL | struct Ty<'a, T>;
380 error[E0107]: missing generics for struct `type_and_type_and_type::Ty`
381 --> $DIR/wrong-number-of-args.rs:80:14
384 | ^^ expected at least 2 generic arguments
386 note: struct defined here, with at least 2 generic parameters: `A`, `B`
387 --> $DIR/wrong-number-of-args.rs:78:12
389 LL | struct Ty<A, B, C = &'static str>;
391 help: add missing generic arguments
393 LL | type A = Ty<A, B>;
396 error[E0107]: this struct takes at least 2 generic arguments but 1 generic argument was supplied
397 --> $DIR/wrong-number-of-args.rs:84:14
399 LL | type B = Ty<usize>;
400 | ^^ ----- supplied 1 generic argument
402 | expected at least 2 generic arguments
404 note: struct defined here, with at least 2 generic parameters: `A`, `B`
405 --> $DIR/wrong-number-of-args.rs:78:12
407 LL | struct Ty<A, B, C = &'static str>;
409 help: add missing generic argument
411 LL | type B = Ty<usize, B>;
414 error[E0107]: this struct takes at most 3 generic arguments but 4 generic arguments were supplied
415 --> $DIR/wrong-number-of-args.rs:92:14
417 LL | type E = Ty<usize, String, char, f64>;
418 | ^^ --- help: remove this generic argument
420 | expected at most 3 generic arguments
422 note: struct defined here, with at most 3 generic parameters: `A`, `B`, `C`
423 --> $DIR/wrong-number-of-args.rs:78:12
425 LL | struct Ty<A, B, C = &'static str>;
426 | ^^ - - ----------------
428 error[E0107]: this struct takes at least 2 generic arguments but 0 generic arguments were supplied
429 --> $DIR/wrong-number-of-args.rs:96:14
432 | ^^ expected at least 2 generic arguments
434 note: struct defined here, with at least 2 generic parameters: `A`, `B`
435 --> $DIR/wrong-number-of-args.rs:78:12
437 LL | struct Ty<A, B, C = &'static str>;
439 help: add missing generic arguments
441 LL | type F = Ty<A, B>;
444 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
445 --> $DIR/wrong-number-of-args.rs:116:22
447 LL | type A = Box<dyn NonGeneric<usize>>;
448 | ^^^^^^^^^^------- help: remove these generics
450 | expected 0 generic arguments
452 note: trait defined here, with 0 generic parameters
453 --> $DIR/wrong-number-of-args.rs:104:11
455 LL | trait NonGeneric {
458 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
459 --> $DIR/wrong-number-of-args.rs:125:22
461 LL | type C = Box<dyn GenericLifetime<'static, 'static>>;
462 | ^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
464 | expected 1 lifetime argument
466 note: trait defined here, with 1 lifetime parameter: `'a`
467 --> $DIR/wrong-number-of-args.rs:108:11
469 LL | trait GenericLifetime<'a> {
472 error[E0107]: missing generics for trait `GenericType`
473 --> $DIR/wrong-number-of-args.rs:129:22
475 LL | type D = Box<dyn GenericType>;
476 | ^^^^^^^^^^^ expected 1 generic argument
478 note: trait defined here, with 1 generic parameter: `A`
479 --> $DIR/wrong-number-of-args.rs:112:11
481 LL | trait GenericType<A> {
483 help: add missing generic argument
485 LL | type D = Box<dyn GenericType<A>>;
488 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
489 --> $DIR/wrong-number-of-args.rs:133:22
491 LL | type E = Box<dyn GenericType<String, usize>>;
492 | ^^^^^^^^^^^ ----- help: remove this generic argument
494 | expected 1 generic argument
496 note: trait defined here, with 1 generic parameter: `A`
497 --> $DIR/wrong-number-of-args.rs:112:11
499 LL | trait GenericType<A> {
502 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
503 --> $DIR/wrong-number-of-args.rs:142:22
505 LL | type G = Box<dyn GenericType<>>;
506 | ^^^^^^^^^^^ expected 1 generic argument
508 note: trait defined here, with 1 generic parameter: `A`
509 --> $DIR/wrong-number-of-args.rs:112:11
511 LL | trait GenericType<A> {
513 help: add missing generic argument
515 LL | type G = Box<dyn GenericType<A>>;
518 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
519 --> $DIR/wrong-number-of-args.rs:153:26
521 LL | type A = Box<dyn NonGenericAT<usize, AssocTy=()>>;
522 | ^^^^^^^^^^^^------------------- help: remove these generics
524 | expected 0 generic arguments
526 note: trait defined here, with 0 generic parameters
527 --> $DIR/wrong-number-of-args.rs:149:15
529 LL | trait NonGenericAT {
532 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
533 --> $DIR/wrong-number-of-args.rs:168:26
535 LL | type B = Box<dyn GenericLifetimeAT<'static, 'static, AssocTy=()>>;
536 | ^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
538 | expected 1 lifetime argument
540 note: trait defined here, with 1 lifetime parameter: `'a`
541 --> $DIR/wrong-number-of-args.rs:159:15
543 LL | trait GenericLifetimeAT<'a> {
544 | ^^^^^^^^^^^^^^^^^ --
546 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
547 --> $DIR/wrong-number-of-args.rs:172:26
549 LL | type C = Box<dyn GenericLifetimeAT<(), AssocTy=()>>;
550 | ^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
552 | expected 0 generic arguments
554 note: trait defined here, with 0 generic parameters
555 --> $DIR/wrong-number-of-args.rs:159:15
557 LL | trait GenericLifetimeAT<'a> {
560 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
561 --> $DIR/wrong-number-of-args.rs:185:26
563 LL | type A = Box<dyn GenericTypeAT<AssocTy=()>>;
564 | ^^^^^^^^^^^^^ expected 1 generic argument
566 note: trait defined here, with 1 generic parameter: `A`
567 --> $DIR/wrong-number-of-args.rs:181:15
569 LL | trait GenericTypeAT<A> {
571 help: add missing generic argument
573 LL | type A = Box<dyn GenericTypeAT<A, AssocTy=()>>;
576 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
577 --> $DIR/wrong-number-of-args.rs:189:26
579 LL | type B = Box<dyn GenericTypeAT<(), (), AssocTy=()>>;
580 | ^^^^^^^^^^^^^ -- help: remove this generic argument
582 | expected 1 generic argument
584 note: trait defined here, with 1 generic parameter: `A`
585 --> $DIR/wrong-number-of-args.rs:181:15
587 LL | trait GenericTypeAT<A> {
590 error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
591 --> $DIR/wrong-number-of-args.rs:193:26
593 LL | type C = Box<dyn GenericTypeAT<'static, AssocTy=()>>;
594 | ^^^^^^^^^^^^^--------------------- help: remove these generics
596 | expected 0 lifetime arguments
598 note: trait defined here, with 0 lifetime parameters
599 --> $DIR/wrong-number-of-args.rs:181:15
601 LL | trait GenericTypeAT<A> {
604 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
605 --> $DIR/wrong-number-of-args.rs:193:26
607 LL | type C = Box<dyn GenericTypeAT<'static, AssocTy=()>>;
608 | ^^^^^^^^^^^^^ expected 1 generic argument
610 note: trait defined here, with 1 generic parameter: `A`
611 --> $DIR/wrong-number-of-args.rs:181:15
613 LL | trait GenericTypeAT<A> {
615 help: add missing generic argument
617 LL | type C = Box<dyn GenericTypeAT<'static, A, AssocTy=()>>;
620 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
621 --> $DIR/wrong-number-of-args.rs:205:26
623 LL | type A = Box<dyn GenericLifetimeTypeAT<AssocTy=()>>;
624 | ^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
626 note: trait defined here, with 1 generic parameter: `A`
627 --> $DIR/wrong-number-of-args.rs:201:15
629 LL | trait GenericLifetimeTypeAT<'a, A> {
630 | ^^^^^^^^^^^^^^^^^^^^^ -
631 help: add missing generic argument
633 LL | type A = Box<dyn GenericLifetimeTypeAT<A, AssocTy=()>>;
636 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
637 --> $DIR/wrong-number-of-args.rs:212:26
639 LL | type B = Box<dyn GenericLifetimeTypeAT<'static, AssocTy=()>>;
640 | ^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
642 note: trait defined here, with 1 generic parameter: `A`
643 --> $DIR/wrong-number-of-args.rs:201:15
645 LL | trait GenericLifetimeTypeAT<'a, A> {
646 | ^^^^^^^^^^^^^^^^^^^^^ -
647 help: add missing generic argument
649 LL | type B = Box<dyn GenericLifetimeTypeAT<'static, A, AssocTy=()>>;
652 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
653 --> $DIR/wrong-number-of-args.rs:216:26
655 LL | type C = Box<dyn GenericLifetimeTypeAT<'static, 'static, AssocTy=()>>;
656 | ^^^^^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
658 | expected 1 lifetime argument
660 note: trait defined here, with 1 lifetime parameter: `'a`
661 --> $DIR/wrong-number-of-args.rs:201:15
663 LL | trait GenericLifetimeTypeAT<'a, A> {
664 | ^^^^^^^^^^^^^^^^^^^^^ --
666 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
667 --> $DIR/wrong-number-of-args.rs:216:26
669 LL | type C = Box<dyn GenericLifetimeTypeAT<'static, 'static, AssocTy=()>>;
670 | ^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
672 note: trait defined here, with 1 generic parameter: `A`
673 --> $DIR/wrong-number-of-args.rs:201:15
675 LL | trait GenericLifetimeTypeAT<'a, A> {
676 | ^^^^^^^^^^^^^^^^^^^^^ -
677 help: add missing generic argument
679 LL | type C = Box<dyn GenericLifetimeTypeAT<'static, 'static, A, AssocTy=()>>;
682 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
683 --> $DIR/wrong-number-of-args.rs:227:26
685 LL | type E = Box<dyn GenericLifetimeTypeAT<(), (), AssocTy=()>>;
686 | ^^^^^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
688 | expected 1 generic argument
690 note: trait defined here, with 1 generic parameter: `A`
691 --> $DIR/wrong-number-of-args.rs:201:15
693 LL | trait GenericLifetimeTypeAT<'a, A> {
694 | ^^^^^^^^^^^^^^^^^^^^^ -
696 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
697 --> $DIR/wrong-number-of-args.rs:234:26
699 LL | type F = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), AssocTy=()>>;
700 | ^^^^^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
702 | expected 1 lifetime argument
704 note: trait defined here, with 1 lifetime parameter: `'a`
705 --> $DIR/wrong-number-of-args.rs:201:15
707 LL | trait GenericLifetimeTypeAT<'a, A> {
708 | ^^^^^^^^^^^^^^^^^^^^^ --
710 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
711 --> $DIR/wrong-number-of-args.rs:238:26
713 LL | type G = Box<dyn GenericLifetimeTypeAT<'static, (), (), AssocTy=()>>;
714 | ^^^^^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
716 | expected 1 generic argument
718 note: trait defined here, with 1 generic parameter: `A`
719 --> $DIR/wrong-number-of-args.rs:201:15
721 LL | trait GenericLifetimeTypeAT<'a, A> {
722 | ^^^^^^^^^^^^^^^^^^^^^ -
724 error[E0107]: this trait takes 1 lifetime argument but 2 lifetime arguments were supplied
725 --> $DIR/wrong-number-of-args.rs:242:26
727 LL | type H = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), (), AssocTy=()>>;
728 | ^^^^^^^^^^^^^^^^^^^^^ ------- help: remove this lifetime argument
730 | expected 1 lifetime argument
732 note: trait defined here, with 1 lifetime parameter: `'a`
733 --> $DIR/wrong-number-of-args.rs:201:15
735 LL | trait GenericLifetimeTypeAT<'a, A> {
736 | ^^^^^^^^^^^^^^^^^^^^^ --
738 error[E0107]: this trait takes 1 generic argument but 2 generic arguments were supplied
739 --> $DIR/wrong-number-of-args.rs:242:26
741 LL | type H = Box<dyn GenericLifetimeTypeAT<'static, 'static, (), (), AssocTy=()>>;
742 | ^^^^^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
744 | expected 1 generic argument
746 note: trait defined here, with 1 generic parameter: `A`
747 --> $DIR/wrong-number-of-args.rs:201:15
749 LL | trait GenericLifetimeTypeAT<'a, A> {
750 | ^^^^^^^^^^^^^^^^^^^^^ -
752 error[E0107]: this trait takes 2 generic arguments but 0 generic arguments were supplied
753 --> $DIR/wrong-number-of-args.rs:254:26
755 LL | type A = Box<dyn GenericTypeTypeAT<AssocTy=()>>;
756 | ^^^^^^^^^^^^^^^^^ expected 2 generic arguments
758 note: trait defined here, with 2 generic parameters: `A`, `B`
759 --> $DIR/wrong-number-of-args.rs:250:15
761 LL | trait GenericTypeTypeAT<A, B> {
762 | ^^^^^^^^^^^^^^^^^ - -
763 help: add missing generic arguments
765 LL | type A = Box<dyn GenericTypeTypeAT<A, B, AssocTy=()>>;
768 error[E0107]: this trait takes 2 generic arguments but 1 generic argument was supplied
769 --> $DIR/wrong-number-of-args.rs:258:26
771 LL | type B = Box<dyn GenericTypeTypeAT<(), AssocTy=()>>;
772 | ^^^^^^^^^^^^^^^^^ -- supplied 1 generic argument
774 | expected 2 generic arguments
776 note: trait defined here, with 2 generic parameters: `A`, `B`
777 --> $DIR/wrong-number-of-args.rs:250:15
779 LL | trait GenericTypeTypeAT<A, B> {
780 | ^^^^^^^^^^^^^^^^^ - -
781 help: add missing generic argument
783 LL | type B = Box<dyn GenericTypeTypeAT<(), B, AssocTy=()>>;
786 error[E0107]: this trait takes 2 generic arguments but 3 generic arguments were supplied
787 --> $DIR/wrong-number-of-args.rs:262:26
789 LL | type C = Box<dyn GenericTypeTypeAT<(), (), (), AssocTy=()>>;
790 | ^^^^^^^^^^^^^^^^^ -- help: remove this generic argument
792 | expected 2 generic arguments
794 note: trait defined here, with 2 generic parameters: `A`, `B`
795 --> $DIR/wrong-number-of-args.rs:250:15
797 LL | trait GenericTypeTypeAT<A, B> {
798 | ^^^^^^^^^^^^^^^^^ - -
800 error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
801 --> $DIR/wrong-number-of-args.rs:277:26
803 LL | type B = Box<dyn GenericLifetimeLifetimeAT<'static, AssocTy=()>>;
804 | ^^^^^^^^^^^^^^^^^^^^^^^^^ ------- supplied 1 lifetime argument
806 | expected 2 lifetime arguments
808 note: trait defined here, with 2 lifetime parameters: `'a`, `'b`
809 --> $DIR/wrong-number-of-args.rs:268:15
811 LL | trait GenericLifetimeLifetimeAT<'a, 'b> {
812 | ^^^^^^^^^^^^^^^^^^^^^^^^^ -- --
813 help: add missing lifetime argument
815 LL | type B = Box<dyn GenericLifetimeLifetimeAT<'static, 'static, AssocTy=()>>;
818 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
819 --> $DIR/wrong-number-of-args.rs:287:26
821 LL | type A = Box<dyn GenericLifetimeLifetimeTypeAT<AssocTy=()>>;
822 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
824 note: trait defined here, with 1 generic parameter: `A`
825 --> $DIR/wrong-number-of-args.rs:283:15
827 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
828 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
829 help: add missing generic argument
831 LL | type A = Box<dyn GenericLifetimeLifetimeTypeAT<A, AssocTy=()>>;
834 error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
835 --> $DIR/wrong-number-of-args.rs:294:26
837 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, AssocTy=()>>;
838 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------- supplied 1 lifetime argument
840 | expected 2 lifetime arguments
842 note: trait defined here, with 2 lifetime parameters: `'a`, `'b`
843 --> $DIR/wrong-number-of-args.rs:283:15
845 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
846 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- --
847 help: add missing lifetime argument
849 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, 'static, AssocTy=()>>;
852 error[E0107]: this trait takes 1 generic argument but 0 generic arguments were supplied
853 --> $DIR/wrong-number-of-args.rs:294:26
855 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, AssocTy=()>>;
856 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
858 note: trait defined here, with 1 generic parameter: `A`
859 --> $DIR/wrong-number-of-args.rs:283:15
861 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
862 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
863 help: add missing generic argument
865 LL | type B = Box<dyn GenericLifetimeLifetimeTypeAT<'static, A, AssocTy=()>>;
868 error[E0107]: this trait takes 2 lifetime arguments but 1 lifetime argument was supplied
869 --> $DIR/wrong-number-of-args.rs:300:26
871 LL | type C = Box<dyn GenericLifetimeLifetimeTypeAT<'static, (), AssocTy=()>>;
872 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------- supplied 1 lifetime argument
874 | expected 2 lifetime arguments
876 note: trait defined here, with 2 lifetime parameters: `'a`, `'b`
877 --> $DIR/wrong-number-of-args.rs:283:15
879 LL | trait GenericLifetimeLifetimeTypeAT<'a, 'b, A> {
880 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- --
881 help: add missing lifetime argument
883 LL | type C = Box<dyn GenericLifetimeLifetimeTypeAT<'static, 'static, (), AssocTy=()>>;
886 error[E0107]: missing generics for struct `HashMap`
887 --> $DIR/wrong-number-of-args.rs:310:18
889 LL | type A = HashMap;
890 | ^^^^^^^ expected at least 2 generic arguments
892 help: add missing generic arguments
894 LL | type A = HashMap<K, V>;
897 error[E0107]: this struct takes at least 2 generic arguments but 1 generic argument was supplied
898 --> $DIR/wrong-number-of-args.rs:314:18
900 LL | type B = HashMap<String>;
901 | ^^^^^^^ ------ supplied 1 generic argument
903 | expected at least 2 generic arguments
905 help: add missing generic argument
907 LL | type B = HashMap<String, V>;
910 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
911 --> $DIR/wrong-number-of-args.rs:318:18
913 LL | type C = HashMap<'static>;
914 | ^^^^^^^--------- help: remove these generics
916 | expected 0 lifetime arguments
918 error[E0107]: this struct takes at least 2 generic arguments but 0 generic arguments were supplied
919 --> $DIR/wrong-number-of-args.rs:318:18
921 LL | type C = HashMap<'static>;
922 | ^^^^^^^ expected at least 2 generic arguments
924 help: add missing generic arguments
926 LL | type C = HashMap<'static, K, V>;
929 error[E0107]: this struct takes at most 3 generic arguments but 4 generic arguments were supplied
930 --> $DIR/wrong-number-of-args.rs:324:18
932 LL | type D = HashMap<usize, String, char, f64>;
933 | ^^^^^^^ --- help: remove this generic argument
935 | expected at most 3 generic arguments
937 error[E0107]: this struct takes at least 2 generic arguments but 0 generic arguments were supplied
938 --> $DIR/wrong-number-of-args.rs:328:18
940 LL | type E = HashMap<>;
941 | ^^^^^^^ expected at least 2 generic arguments
943 help: add missing generic arguments
945 LL | type E = HashMap<K, V>;
948 error[E0107]: missing generics for enum `Result`
949 --> $DIR/wrong-number-of-args.rs:334:18
951 LL | type A = Result;
952 | ^^^^^^ expected 2 generic arguments
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:338:18
962 LL | type B = Result<String>;
963 | ^^^^^^ ------ supplied 1 generic argument
965 | expected 2 generic arguments
967 help: add missing generic argument
969 LL | type B = Result<String, E>;
972 error[E0107]: this enum takes 0 lifetime arguments but 1 lifetime argument was supplied
973 --> $DIR/wrong-number-of-args.rs:342:18
975 LL | type C = Result<'static>;
976 | ^^^^^^--------- help: remove these generics
978 | expected 0 lifetime arguments
980 error[E0107]: this enum takes 2 generic arguments but 0 generic arguments were supplied
981 --> $DIR/wrong-number-of-args.rs:342:18
983 LL | type C = Result<'static>;
984 | ^^^^^^ expected 2 generic arguments
986 help: add missing generic arguments
988 LL | type C = Result<'static, T, E>;
991 error[E0107]: this enum takes 2 generic arguments but 3 generic arguments were supplied
992 --> $DIR/wrong-number-of-args.rs:348:18
994 LL | type D = Result<usize, String, char>;
995 | ^^^^^^ ---- help: remove this generic argument
997 | expected 2 generic arguments
999 error[E0107]: this enum takes 2 generic arguments but 0 generic arguments were supplied
1000 --> $DIR/wrong-number-of-args.rs:352:18
1002 LL | type E = Result<>;
1003 | ^^^^^^ expected 2 generic arguments
1005 help: add missing generic arguments
1007 LL | type E = Result<T, E>;
1010 error: aborting due to 71 previous errors
1012 Some errors have detailed explanations: E0106, E0107.
1013 For more information about an error, try `rustc --explain E0106`.