@@ -63,28 +63,6 @@ help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
6363LL + #![feature(trivial_bounds)]
6464 |
6565
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-
8866error[E0277]: the trait bound `(): Sub` is not satisfied
8967 --> $DIR/super-assoc-mismatch.rs:46:22
9068 |
@@ -105,30 +83,8 @@ note: required by a bound in `BoundOnSelf`
10583LL | trait BoundOnSelf: Sub {}
10684 | ^^^ required by this bound in `BoundOnSelf`
10785
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-
13086error[E0277]: the trait bound `(): Sub` is not satisfied
131- --> $DIR/super-assoc-mismatch.rs:50 :36
87+ --> $DIR/super-assoc-mismatch.rs:49 :36
13288 |
13389LL | impl BoundOnParam<Wrapper<()>> for Wrapper<()> {}
13490 | ^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -147,30 +103,8 @@ note: required by a bound in `BoundOnParam`
147103LL | trait BoundOnParam<T: Sub> {}
148104 | ^^^ required by this bound in `BoundOnParam`
149105
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-
172106error[E0277]: the trait bound `(): Sub` is not satisfied
173- --> $DIR/super-assoc-mismatch.rs:55 :18
107+ --> $DIR/super-assoc-mismatch.rs:53 :18
174108 |
175109LL | type Assoc = Wrapper<()>;
176110 | ^^^^^^^^^^^ 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`
189123LL | type Assoc: Sub;
190124 | ^^^ required by this bound in `BoundOnAssoc::Assoc`
191125
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-
214126error[E0277]: the trait bound `(): Sub` is not satisfied
215- --> $DIR/super-assoc-mismatch.rs:61 :21
127+ --> $DIR/super-assoc-mismatch.rs:58 :21
216128 |
217129LL | type Assoc<T> = Wrapper<()>;
218130 | ^^^^^^^^^^^ 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`
231143LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
232144 | ^^^ required by this bound in `BoundOnGat`
233145
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-
251146error[E0277]: the trait bound `(): Sub` is not satisfied
252- --> $DIR/super-assoc-mismatch.rs:66 :34
147+ --> $DIR/super-assoc-mismatch.rs:62 :34
253148 |
254149LL | fn trivial_bound_wrapper() where Wrapper<()>: Sub {}
255150 | ^^^^^^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -269,26 +164,25 @@ LL + #![feature(trivial_bounds)]
269164 |
270165
271166error[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
273168 |
274169LL | type Assoc1<T> = ();
275170 | ^^ the trait `SubGeneric<u16>` is not implemented for `()`, which is required by `<u8 as MultiAssoc>::Assoc1<()>: SubGeneric<<u8 as MultiAssoc>::Assoc2>`
276171 |
277172help: this trait has no implementations, consider adding one
278- --> $DIR/super-assoc-mismatch.rs:77 :1
173+ --> $DIR/super-assoc-mismatch.rs:72 :1
279174 |
280175LL | trait SubGeneric<T>: SuperGeneric<T, Assoc = T> {}
281176 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282177note: required by a bound in `MultiAssoc`
283- --> $DIR/super-assoc-mismatch.rs:80 :23
178+ --> $DIR/super-assoc-mismatch.rs:75 :23
284179 |
285180LL | trait MultiAssoc
286181 | ---------- required by a bound in this trait
287182LL | where
288183LL | Self::Assoc1<()>: SubGeneric<Self::Assoc2>
289184 | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `MultiAssoc`
290185
291- error: aborting due to 16 previous errors
186+ error: aborting due to 11 previous errors
292187
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