]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/use-type-argument-instead-of-assoc-type.rs
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / use-type-argument-instead-of-assoc-type.rs
1 pub trait T<X, Y> {
2     type A;
3     type B;
4     type C;
5 }
6 pub struct Foo {
7     i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
8     //~^ ERROR must be specified
9     //~| ERROR this trait takes 2 generic arguments but 4 generic arguments were supplied
10 }
11
12
13 fn main() {}