@@ -63,28 +63,6 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
63
63
LL + #![feature(trivial_bounds)]
64
64
|
65
65
66
- error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
67
- --> $DIR/super-assoc-mismatch.rs:46:22
68
- |
69
- LL | impl BoundOnSelf for Wrapper<()> {}
70
- | ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
71
- |
72
- note: expected this to be `u16`
73
- --> $DIR/super-assoc-mismatch.rs:42:18
74
- |
75
- LL | type Assoc = T::Assoc;
76
- | ^^^^^^^^
77
- note: required for `Wrapper<()>` to implement `Sub`
78
- --> $DIR/super-assoc-mismatch.rs:7:7
79
- |
80
- LL | trait Sub: Super<Assoc = u16> {}
81
- | ^^^
82
- note: required by a bound in `BoundOnSelf`
83
- --> $DIR/super-assoc-mismatch.rs:11:20
84
- |
85
- LL | trait BoundOnSelf: Sub {}
86
- | ^^^ required by this bound in `BoundOnSelf`
87
-
88
66
error[E0277]: the trait bound `(): Sub` is not satisfied
89
67
--> $DIR/super-assoc-mismatch.rs:46:22
90
68
|
@@ -105,30 +83,8 @@ note: required by a bound in `BoundOnSelf`
105
83
LL | trait BoundOnSelf: Sub {}
106
84
| ^^^ required by this bound in `BoundOnSelf`
107
85
108
- error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
109
- --> $DIR/super-assoc-mismatch.rs:50:36
110
- |
111
- LL | impl BoundOnParam<Wrapper<()>> for Wrapper<()> {}
112
- | ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
113
- |
114
- note: expected this to be `u16`
115
- --> $DIR/super-assoc-mismatch.rs:42:18
116
- |
117
- LL | type Assoc = T::Assoc;
118
- | ^^^^^^^^
119
- note: required for `Wrapper<()>` to implement `Sub`
120
- --> $DIR/super-assoc-mismatch.rs:7:7
121
- |
122
- LL | trait Sub: Super<Assoc = u16> {}
123
- | ^^^
124
- note: required by a bound in `BoundOnParam`
125
- --> $DIR/super-assoc-mismatch.rs:15:23
126
- |
127
- LL | trait BoundOnParam<T: Sub> {}
128
- | ^^^ required by this bound in `BoundOnParam`
129
-
130
86
error[E0277]: the trait bound `(): Sub` is not satisfied
131
- --> $DIR/super-assoc-mismatch.rs:50 :36
87
+ --> $DIR/super-assoc-mismatch.rs:49 :36
132
88
|
133
89
LL | impl BoundOnParam<Wrapper<()>> for Wrapper<()> {}
134
90
| ^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -147,30 +103,8 @@ note: required by a bound in `BoundOnParam`
147
103
LL | trait BoundOnParam<T: Sub> {}
148
104
| ^^^ required by this bound in `BoundOnParam`
149
105
150
- error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
151
- --> $DIR/super-assoc-mismatch.rs:55:18
152
- |
153
- LL | type Assoc = Wrapper<()>;
154
- | ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
155
- |
156
- note: expected this to be `u16`
157
- --> $DIR/super-assoc-mismatch.rs:42:18
158
- |
159
- LL | type Assoc = T::Assoc;
160
- | ^^^^^^^^
161
- note: required for `<Wrapper<()> as BoundOnAssoc>::Assoc` to implement `Sub`
162
- --> $DIR/super-assoc-mismatch.rs:7:7
163
- |
164
- LL | trait Sub: Super<Assoc = u16> {}
165
- | ^^^
166
- note: required by a bound in `BoundOnAssoc::Assoc`
167
- --> $DIR/super-assoc-mismatch.rs:20:17
168
- |
169
- LL | type Assoc: Sub;
170
- | ^^^ required by this bound in `BoundOnAssoc::Assoc`
171
-
172
106
error[E0277]: the trait bound `(): Sub` is not satisfied
173
- --> $DIR/super-assoc-mismatch.rs:55 :18
107
+ --> $DIR/super-assoc-mismatch.rs:53 :18
174
108
|
175
109
LL | type Assoc = Wrapper<()>;
176
110
| ^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -189,30 +123,8 @@ note: required by a bound in `BoundOnAssoc::Assoc`
189
123
LL | type Assoc: Sub;
190
124
| ^^^ required by this bound in `BoundOnAssoc::Assoc`
191
125
192
- error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
193
- --> $DIR/super-assoc-mismatch.rs:61:21
194
- |
195
- LL | type Assoc<T> = Wrapper<()>;
196
- | ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
197
- |
198
- note: expected this to be `u16`
199
- --> $DIR/super-assoc-mismatch.rs:42:18
200
- |
201
- LL | type Assoc = T::Assoc;
202
- | ^^^^^^^^
203
- note: required for `<Wrapper<()> as BoundOnGat>::Assoc<u8>` to implement `Sub`
204
- --> $DIR/super-assoc-mismatch.rs:7:7
205
- |
206
- LL | trait Sub: Super<Assoc = u16> {}
207
- | ^^^
208
- note: required by a bound in `BoundOnGat`
209
- --> $DIR/super-assoc-mismatch.rs:27:41
210
- |
211
- LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
212
- | ^^^ required by this bound in `BoundOnGat`
213
-
214
126
error[E0277]: the trait bound `(): Sub` is not satisfied
215
- --> $DIR/super-assoc-mismatch.rs:61 :21
127
+ --> $DIR/super-assoc-mismatch.rs:58 :21
216
128
|
217
129
LL | type Assoc<T> = Wrapper<()>;
218
130
| ^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `<Wrapper<()> as BoundOnGat>::Assoc<u8>: Sub`
@@ -231,25 +143,8 @@ note: required by a bound in `BoundOnGat`
231
143
LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
232
144
| ^^^ required by this bound in `BoundOnGat`
233
145
234
- error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
235
- --> $DIR/super-assoc-mismatch.rs:66:34
236
- |
237
- LL | fn trivial_bound_wrapper() where Wrapper<()>: Sub {}
238
- | ^^^^^^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
239
- |
240
- note: expected this to be `u8`
241
- --> $DIR/super-assoc-mismatch.rs:42:18
242
- |
243
- LL | type Assoc = T::Assoc;
244
- | ^^^^^^^^
245
- = help: see issue #48214
246
- help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
247
- |
248
- LL + #![feature(trivial_bounds)]
249
- |
250
-
251
146
error[E0277]: the trait bound `(): Sub` is not satisfied
252
- --> $DIR/super-assoc-mismatch.rs:66 :34
147
+ --> $DIR/super-assoc-mismatch.rs:62 :34
253
148
|
254
149
LL | fn trivial_bound_wrapper() where Wrapper<()>: Sub {}
255
150
| ^^^^^^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -269,26 +164,25 @@ LL + #![feature(trivial_bounds)]
269
164
|
270
165
271
166
error[E0277]: the trait bound `(): SubGeneric<u16>` is not satisfied
272
- --> $DIR/super-assoc-mismatch.rs:89 :22
167
+ --> $DIR/super-assoc-mismatch.rs:84 :22
273
168
|
274
169
LL | type Assoc1<T> = ();
275
170
| ^^ the trait `SubGeneric<u16>` is not implemented for `()`, which is required by `<u8 as MultiAssoc>::Assoc1<()>: SubGeneric<<u8 as MultiAssoc>::Assoc2>`
276
171
|
277
172
help: this trait has no implementations, consider adding one
278
- --> $DIR/super-assoc-mismatch.rs:77 :1
173
+ --> $DIR/super-assoc-mismatch.rs:72 :1
279
174
|
280
175
LL | trait SubGeneric<T>: SuperGeneric<T, Assoc = T> {}
281
176
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282
177
note: required by a bound in `MultiAssoc`
283
- --> $DIR/super-assoc-mismatch.rs:80 :23
178
+ --> $DIR/super-assoc-mismatch.rs:75 :23
284
179
|
285
180
LL | trait MultiAssoc
286
181
| ---------- required by a bound in this trait
287
182
LL | where
288
183
LL | Self::Assoc1<()>: SubGeneric<Self::Assoc2>
289
184
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `MultiAssoc`
290
185
291
- error: aborting due to 16 previous errors
186
+ error: aborting due to 11 previous errors
292
187
293
- Some errors have detailed explanations: E0271, E0277.
294
- For more information about an error, try `rustc --explain E0271`.
188
+ For more information about this error, try `rustc --explain E0277`.
0 commit comments