@@ -62,66 +62,66 @@ LL | fn c<C>(_: <C as Vehicle>::Color) where C : Vehicle, C : Box {
6262 | ~~~~~~~~~~~~~~~~
6363
6464error[E0221]: ambiguous associated type `Color` in bounds of `X`
65- --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:35 :20
65+ --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:30 :20
6666 |
6767LL | type Color;
6868 | ---------- ambiguous `Color` from `Vehicle`
6969...
7070LL | type Color;
7171 | ---------- ambiguous `Color` from `Box`
7272...
73- LL | fn e (&self, _: X::Color) where X : Box;
73+ LL | fn d (&self, _: X::Color) where X : Box { }
7474 | ^^^^^^^^ ambiguous associated type `Color`
7575 |
7676help: use fully-qualified syntax to disambiguate
7777 |
78- LL | fn e (&self, _: <X as Box>::Color) where X : Box;
78+ LL | fn d (&self, _: <X as Box>::Color) where X : Box { }
7979 | ~~~~~~~~~~~~
8080help: use fully-qualified syntax to disambiguate
8181 |
82- LL | fn e (&self, _: <X as Vehicle>::Color) where X : Box;
82+ LL | fn d (&self, _: <X as Vehicle>::Color) where X : Box { }
8383 | ~~~~~~~~~~~~~~~~
8484
8585error[E0221]: ambiguous associated type `Color` in bounds of `X`
86- --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:38 :20
86+ --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:35 :20
8787 |
8888LL | type Color;
8989 | ---------- ambiguous `Color` from `Vehicle`
9090...
9191LL | type Color;
9292 | ---------- ambiguous `Color` from `Box`
9393...
94- LL | fn f (&self, _: X::Color) where X : Box { }
94+ LL | fn e (&self, _: X::Color) where X : Box;
9595 | ^^^^^^^^ ambiguous associated type `Color`
9696 |
9797help: use fully-qualified syntax to disambiguate
9898 |
99- LL | fn f (&self, _: <X as Box>::Color) where X : Box { }
99+ LL | fn e (&self, _: <X as Box>::Color) where X : Box;
100100 | ~~~~~~~~~~~~
101101help: use fully-qualified syntax to disambiguate
102102 |
103- LL | fn f (&self, _: <X as Vehicle>::Color) where X : Box { }
103+ LL | fn e (&self, _: <X as Vehicle>::Color) where X : Box;
104104 | ~~~~~~~~~~~~~~~~
105105
106106error[E0221]: ambiguous associated type `Color` in bounds of `X`
107- --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:30 :20
107+ --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:38 :20
108108 |
109109LL | type Color;
110110 | ---------- ambiguous `Color` from `Vehicle`
111111...
112112LL | type Color;
113113 | ---------- ambiguous `Color` from `Box`
114114...
115- LL | fn d (&self, _: X::Color) where X : Box { }
115+ LL | fn f (&self, _: X::Color) where X : Box { }
116116 | ^^^^^^^^ ambiguous associated type `Color`
117117 |
118118help: use fully-qualified syntax to disambiguate
119119 |
120- LL | fn d (&self, _: <X as Box>::Color) where X : Box { }
120+ LL | fn f (&self, _: <X as Box>::Color) where X : Box { }
121121 | ~~~~~~~~~~~~
122122help: use fully-qualified syntax to disambiguate
123123 |
124- LL | fn d (&self, _: <X as Vehicle>::Color) where X : Box { }
124+ LL | fn f (&self, _: <X as Vehicle>::Color) where X : Box { }
125125 | ~~~~~~~~~~~~~~~~
126126
127127error: aborting due to 6 previous errors
0 commit comments