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 | ^ expected 2 generic arguments
7 note: trait defined here, with 2 generic parameters: `X`, `Y`
8 --> $DIR/use-type-argument-instead-of-assoc-type.rs:1:11
10 LL | pub trait T<X, Y> {
12 help: replace the generic bounds with the associated types
14 LL | i: Box<dyn T<usize, usize, A = usize, C = usize, B=usize>>,
17 error[E0191]: the value of the associated types `A` (from trait `T`), `C` (from trait `T`) must be specified
18 --> $DIR/use-type-argument-instead-of-assoc-type.rs:7:16
21 | ------ `A` defined here
24 | ------ `C` defined here
26 LL | i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated types `A`, `C` must be specified
29 error: aborting due to 2 previous errors
31 Some errors have detailed explanations: E0107, E0191.
32 For more information about an error, try `rustc --explain E0107`.