1 error[E0107]: this trait takes 2 generic arguments but 4 generic arguments were supplied
2 --> $DIR/use-type-argument-instead-of-assoc-type.rs:7:16
4 LL | i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
5 | ^ ------------ help: remove these generic arguments
7 | expected 2 generic arguments
9 note: trait defined here, with 2 generic parameters: `X`, `Y`
10 --> $DIR/use-type-argument-instead-of-assoc-type.rs:1:11
12 LL | pub trait T<X, Y> {
15 error[E0191]: the value of the associated types `A` (from trait `T`), `C` (from trait `T`) must be specified
16 --> $DIR/use-type-argument-instead-of-assoc-type.rs:7:16
19 | ------- `A` defined here
22 | ------- `C` defined here
24 LL | i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated types `A`, `C` must be specified
27 help: specify the associated types
29 LL | i: Box<dyn T<usize, usize, A = usize, C = usize, B=usize>>,
32 error: aborting due to 2 previous errors
34 Some errors have detailed explanations: E0107, E0191.
35 For more information about an error, try `rustc --explain E0107`.