]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / suggestions / use-type-argument-instead-of-assoc-type.stderr
CommitLineData
a1dfa0c6
XL
1error[E0107]: wrong number of type arguments: expected 2, found 4
2 --> $DIR/use-type-argument-instead-of-assoc-type.rs:7:28
3 |
4LL | i: Box<T<usize, usize, usize, usize, B=usize>>,
5 | ^^^^^ ^^^^^ unexpected type argument
6 | |
7 | unexpected type argument
8
9error[E0191]: the value of the associated types `A` (from the trait `T`), `C` (from the trait `T`) must be specified
10 --> $DIR/use-type-argument-instead-of-assoc-type.rs:7:12
11 |
12LL | type A;
13 | ------- `A` defined here
14LL | type B;
15LL | type C;
16 | ------- `C` defined here
17...
18LL | i: Box<T<usize, usize, usize, usize, B=usize>>,
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 | |
21 | associated type `A` must be specified
22 | associated type `C` must be specified
23help: if you meant to specify the associated types, write
24 |
25LL | i: Box<T<usize, usize, A = usize, C = usize, B=usize>>,
26 | ^^^^^^^^^ ^^^^^^^^^
27
28error: aborting due to 2 previous errors
29
30Some errors occurred: E0107, E0191.
31For more information about an error, try `rustc --explain E0107`.