]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.stderr
Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank
[rust.git] / src / test / ui / suggestions / use-type-argument-instead-of-assoc-type.stderr
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
3    |
4 LL |     i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
5    |                ^               ------------ help: remove these generic arguments
6    |                |
7    |                expected 2 generic arguments
8    |
9 note: trait defined here, with 2 generic parameters: `X`, `Y`
10   --> $DIR/use-type-argument-instead-of-assoc-type.rs:1:11
11    |
12 LL | pub trait T<X, Y> {
13    |           ^ -  -
14
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
17    |
18 LL |     type A;
19    |     ------- `A` defined here
20 LL |     type B;
21 LL |     type C;
22    |     ------- `C` defined here
23 ...
24 LL |     i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
25    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated types `A`, `C` must be specified
26    |
27 help: specify the associated types
28    |
29 LL |     i: Box<dyn T<usize, usize, A = usize, C = usize, B=usize>>,
30    |                                ~~~~~~~~~  ~~~~~~~~~
31
32 error: aborting due to 2 previous errors
33
34 Some errors have detailed explanations: E0107, E0191.
35 For more information about an error, try `rustc --explain E0107`.