1 error[E0221]: ambiguous associated type `Color` in bounds of `C`
2 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:16:24
5 | ---------- ambiguous `Color` from `Vehicle`
8 | ---------- ambiguous `Color` from `Box`
10 LL | fn a<C:Vehicle+Box>(_: C::Color) {
11 | ^^^^^^^^ ambiguous associated type `Color`
13 help: use fully qualified syntax to disambiguate
15 LL | fn a<C:Vehicle+Box>(_: <C as Box>::Color) {
17 help: use fully qualified syntax to disambiguate
19 LL | fn a<C:Vehicle+Box>(_: <C as Vehicle>::Color) {
22 error[E0221]: ambiguous associated type `Color` in bounds of `C`
23 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:20:12
26 | ---------- ambiguous `Color` from `Vehicle`
29 | ---------- ambiguous `Color` from `Box`
31 LL | fn b<C>(_: C::Color) where C : Vehicle+Box {
32 | ^^^^^^^^ ambiguous associated type `Color`
34 help: use fully qualified syntax to disambiguate
36 LL | fn b<C>(_: <C as Box>::Color) where C : Vehicle+Box {
38 help: use fully qualified syntax to disambiguate
40 LL | fn b<C>(_: <C as Vehicle>::Color) where C : Vehicle+Box {
43 error[E0221]: ambiguous associated type `Color` in bounds of `C`
44 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:24:12
47 | ---------- ambiguous `Color` from `Vehicle`
50 | ---------- ambiguous `Color` from `Box`
52 LL | fn c<C>(_: C::Color) where C : Vehicle, C : Box {
53 | ^^^^^^^^ ambiguous associated type `Color`
55 help: use fully qualified syntax to disambiguate
57 LL | fn c<C>(_: <C as Box>::Color) where C : Vehicle, C : Box {
59 help: use fully qualified syntax to disambiguate
61 LL | fn c<C>(_: <C as Vehicle>::Color) where C : Vehicle, C : Box {
64 error[E0221]: ambiguous associated type `Color` in bounds of `X`
65 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:35:20
68 | ---------- ambiguous `Color` from `Vehicle`
71 | ---------- ambiguous `Color` from `Box`
73 LL | fn e(&self, _: X::Color) where X : Box;
74 | ^^^^^^^^ ambiguous associated type `Color`
76 help: use fully qualified syntax to disambiguate
78 LL | fn e(&self, _: <X as Box>::Color) where X : Box;
80 help: use fully qualified syntax to disambiguate
82 LL | fn e(&self, _: <X as Vehicle>::Color) where X : Box;
85 error[E0221]: ambiguous associated type `Color` in bounds of `X`
86 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:38:20
89 | ---------- ambiguous `Color` from `Vehicle`
92 | ---------- ambiguous `Color` from `Box`
94 LL | fn f(&self, _: X::Color) where X : Box { }
95 | ^^^^^^^^ ambiguous associated type `Color`
97 help: use fully qualified syntax to disambiguate
99 LL | fn f(&self, _: <X as Box>::Color) where X : Box { }
101 help: use fully qualified syntax to disambiguate
103 LL | fn f(&self, _: <X as Vehicle>::Color) where X : Box { }
106 error[E0221]: ambiguous associated type `Color` in bounds of `X`
107 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:30:20
110 | ---------- ambiguous `Color` from `Vehicle`
113 | ---------- ambiguous `Color` from `Box`
115 LL | fn d(&self, _: X::Color) where X : Box { }
116 | ^^^^^^^^ ambiguous associated type `Color`
118 help: use fully qualified syntax to disambiguate
120 LL | fn d(&self, _: <X as Box>::Color) where X : Box { }
122 help: use fully qualified syntax to disambiguate
124 LL | fn d(&self, _: <X as Vehicle>::Color) where X : Box { }
127 error: aborting due to 6 previous errors
129 For more information about this error, try `rustc --explain E0221`.