]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-type/associated-type-projection-from-multiple-supertraits.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / associated-type / associated-type-projection-from-multiple-supertraits.stderr
1 error[E0221]: ambiguous associated type `Color` in bounds of `C`
2   --> $DIR/associated-type-projection-from-multiple-supertraits.rs:19:32
3    |
4 LL |     type Color;
5    |     ----------- ambiguous `Color` from `Vehicle`
6 ...
7 LL |     type Color;
8    |     ----------- ambiguous `Color` from `Box`
9 ...
10 LL | fn dent<C:BoxCar>(c: C, color: C::Color) {
11    |                                ^^^^^^^^ ambiguous associated type `Color`
12
13 error[E0221]: ambiguous associated type `Color` in bounds of `BoxCar`
14   --> $DIR/associated-type-projection-from-multiple-supertraits.rs:23:37
15    |
16 LL |     type Color;
17    |     ----------- ambiguous `Color` from `Vehicle`
18 ...
19 LL |     type Color;
20    |     ----------- ambiguous `Color` from `Box`
21 ...
22 LL | fn dent_object<COLOR>(c: dyn BoxCar<Color=COLOR>) {
23    |                                     ^^^^^^^^^^^ ambiguous associated type `Color`
24
25 error[E0191]: the value of the associated type `Color` (from the trait `Vehicle`) must be specified
26   --> $DIR/associated-type-projection-from-multiple-supertraits.rs:23:26
27    |
28 LL |     type Color;
29    |     ----------- `Color` defined here
30 ...
31 LL | fn dent_object<COLOR>(c: dyn BoxCar<Color=COLOR>) {
32    |                          ^^^^^^^^^^^^^^^^^^^^^^^ associated type `Color` must be specified
33
34 error[E0221]: ambiguous associated type `Color` in bounds of `C`
35   --> $DIR/associated-type-projection-from-multiple-supertraits.rs:28:29
36    |
37 LL |     type Color;
38    |     ----------- ambiguous `Color` from `Vehicle`
39 ...
40 LL |     type Color;
41    |     ----------- ambiguous `Color` from `Box`
42 ...
43 LL | fn paint<C:BoxCar>(c: C, d: C::Color) {
44    |                             ^^^^^^^^ ambiguous associated type `Color`
45
46 error: aborting due to 4 previous errors
47
48 Some errors have detailed explanations: E0191, E0221.
49 For more information about an error, try `rustc --explain E0191`.