forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassociated-type-projection-from-multiple-supertraits.stderr
46 lines (41 loc) · 1.72 KB
/
associated-type-projection-from-multiple-supertraits.stderr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
error[E0221]: ambiguous associated type `Color` in bounds of `C`
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:29:32
|
15 | type Color;
| ----------- ambiguous `Color` from `Vehicle`
...
21 | type Color;
| ----------- ambiguous `Color` from `Box`
...
29 | fn dent<C:BoxCar>(c: C, color: C::Color) {
| ^^^^^^^^ ambiguous associated type `Color`
error[E0221]: ambiguous associated type `Color` in bounds of `BoxCar`
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:33
|
15 | type Color;
| ----------- ambiguous `Color` from `Vehicle`
...
21 | type Color;
| ----------- ambiguous `Color` from `Box`
...
33 | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
| ^^^^^^^^^^^ ambiguous associated type `Color`
error[E0191]: the value of the associated type `Color` (from the trait `Vehicle`) must be specified
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:33:26
|
33 | fn dent_object<COLOR>(c: BoxCar<Color=COLOR>) {
| ^^^^^^^^^^^^^^^^^^^ missing associated type `Color` value
error[E0221]: ambiguous associated type `Color` in bounds of `C`
--> $DIR/associated-type-projection-from-multiple-supertraits.rs:38:29
|
15 | type Color;
| ----------- ambiguous `Color` from `Vehicle`
...
21 | type Color;
| ----------- ambiguous `Color` from `Box`
...
38 | fn paint<C:BoxCar>(c: C, d: C::Color) {
| ^^^^^^^^ ambiguous associated type `Color`
error: aborting due to 4 previous errors
You've got a few errors: E0191, E0221
If you want more information on an error, try using "rustc --explain E0191"