@@ -62,66 +62,66 @@ LL | fn c<C>(_: <C as Vehicle>::Color) where C : Vehicle, C : Box {
62
62
| ~~~~~~~~~~~~~~~~
63
63
64
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
65
+ --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:30 :20
66
66
|
67
67
LL | type Color;
68
68
| ---------- ambiguous `Color` from `Vehicle`
69
69
...
70
70
LL | type Color;
71
71
| ---------- ambiguous `Color` from `Box`
72
72
...
73
- LL | fn e (&self, _: X::Color) where X : Box;
73
+ LL | fn d (&self, _: X::Color) where X : Box { }
74
74
| ^^^^^^^^ ambiguous associated type `Color`
75
75
|
76
76
help: use fully-qualified syntax to disambiguate
77
77
|
78
- LL | fn e (&self, _: <X as Box>::Color) where X : Box;
78
+ LL | fn d (&self, _: <X as Box>::Color) where X : Box { }
79
79
| ~~~~~~~~~~~~
80
80
help: use fully-qualified syntax to disambiguate
81
81
|
82
- LL | fn e (&self, _: <X as Vehicle>::Color) where X : Box;
82
+ LL | fn d (&self, _: <X as Vehicle>::Color) where X : Box { }
83
83
| ~~~~~~~~~~~~~~~~
84
84
85
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
86
+ --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:35 :20
87
87
|
88
88
LL | type Color;
89
89
| ---------- ambiguous `Color` from `Vehicle`
90
90
...
91
91
LL | type Color;
92
92
| ---------- ambiguous `Color` from `Box`
93
93
...
94
- LL | fn f (&self, _: X::Color) where X : Box { }
94
+ LL | fn e (&self, _: X::Color) where X : Box;
95
95
| ^^^^^^^^ ambiguous associated type `Color`
96
96
|
97
97
help: use fully-qualified syntax to disambiguate
98
98
|
99
- LL | fn f (&self, _: <X as Box>::Color) where X : Box { }
99
+ LL | fn e (&self, _: <X as Box>::Color) where X : Box;
100
100
| ~~~~~~~~~~~~
101
101
help: use fully-qualified syntax to disambiguate
102
102
|
103
- LL | fn f (&self, _: <X as Vehicle>::Color) where X : Box { }
103
+ LL | fn e (&self, _: <X as Vehicle>::Color) where X : Box;
104
104
| ~~~~~~~~~~~~~~~~
105
105
106
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
107
+ --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:38 :20
108
108
|
109
109
LL | type Color;
110
110
| ---------- ambiguous `Color` from `Vehicle`
111
111
...
112
112
LL | type Color;
113
113
| ---------- ambiguous `Color` from `Box`
114
114
...
115
- LL | fn d (&self, _: X::Color) where X : Box { }
115
+ LL | fn f (&self, _: X::Color) where X : Box { }
116
116
| ^^^^^^^^ ambiguous associated type `Color`
117
117
|
118
118
help: use fully-qualified syntax to disambiguate
119
119
|
120
- LL | fn d (&self, _: <X as Box>::Color) where X : Box { }
120
+ LL | fn f (&self, _: <X as Box>::Color) where X : Box { }
121
121
| ~~~~~~~~~~~~
122
122
help: use fully-qualified syntax to disambiguate
123
123
|
124
- LL | fn d (&self, _: <X as Vehicle>::Color) where X : Box { }
124
+ LL | fn f (&self, _: <X as Vehicle>::Color) where X : Box { }
125
125
| ~~~~~~~~~~~~~~~~
126
126
127
127
error: aborting due to 6 previous errors
0 commit comments