@@ -15,30 +15,8 @@ note: required by a bound in `BoundOnSelf`
1515LL | trait BoundOnSelf: Sub {}
1616 | ^^^ required by this bound in `BoundOnSelf`
1717
18- error[E0271]: type mismatch resolving `<() as Super>::Assoc == u16`
19- --> $DIR/super-assoc-mismatch.rs:10:22
20- |
21- LL | impl BoundOnSelf for () {}
22- | ^^ type mismatch resolving `<() as Super>::Assoc == u16`
23- |
24- note: expected this to be `u16`
25- --> $DIR/super-assoc-mismatch.rs:5:18
26- |
27- LL | type Assoc = u8;
28- | ^^
29- note: required for `()` to implement `Sub`
30- --> $DIR/super-assoc-mismatch.rs:7:7
31- |
32- LL | trait Sub: Super<Assoc = u16> {}
33- | ^^^
34- note: required by a bound in `BoundOnSelf`
35- --> $DIR/super-assoc-mismatch.rs:9:20
36- |
37- LL | trait BoundOnSelf: Sub {}
38- | ^^^ required by this bound in `BoundOnSelf`
39-
4018error[E0277]: the trait bound `(): Sub` is not satisfied
41- --> $DIR/super-assoc-mismatch.rs:15 :27
19+ --> $DIR/super-assoc-mismatch.rs:14 :27
4220 |
4321LL | impl BoundOnParam<()> for () {}
4422 | ^^ the trait `Sub` is not implemented for `()`
@@ -49,35 +27,13 @@ help: this trait has no implementations, consider adding one
4927LL | trait Sub: Super<Assoc = u16> {}
5028 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5129note: required by a bound in `BoundOnParam`
52- --> $DIR/super-assoc-mismatch.rs:14:23
53- |
54- LL | trait BoundOnParam<T: Sub> {}
55- | ^^^ required by this bound in `BoundOnParam`
56-
57- error[E0271]: type mismatch resolving `<() as Super>::Assoc == u16`
58- --> $DIR/super-assoc-mismatch.rs:15:27
59- |
60- LL | impl BoundOnParam<()> for () {}
61- | ^^ type mismatch resolving `<() as Super>::Assoc == u16`
62- |
63- note: expected this to be `u16`
64- --> $DIR/super-assoc-mismatch.rs:5:18
65- |
66- LL | type Assoc = u8;
67- | ^^
68- note: required for `()` to implement `Sub`
69- --> $DIR/super-assoc-mismatch.rs:7:7
70- |
71- LL | trait Sub: Super<Assoc = u16> {}
72- | ^^^
73- note: required by a bound in `BoundOnParam`
74- --> $DIR/super-assoc-mismatch.rs:14:23
30+ --> $DIR/super-assoc-mismatch.rs:13:23
7531 |
7632LL | trait BoundOnParam<T: Sub> {}
7733 | ^^^ required by this bound in `BoundOnParam`
7834
7935error[E0277]: the trait bound `(): Sub` is not satisfied
80- --> $DIR/super-assoc-mismatch.rs:23 :18
36+ --> $DIR/super-assoc-mismatch.rs:21 :18
8137 |
8238LL | type Assoc = ();
8339 | ^^ the trait `Sub` is not implemented for `()`
@@ -88,35 +44,13 @@ help: this trait has no implementations, consider adding one
8844LL | trait Sub: Super<Assoc = u16> {}
8945 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9046note: required by a bound in `BoundOnAssoc::Assoc`
91- --> $DIR/super-assoc-mismatch.rs:20:17
92- |
93- LL | type Assoc: Sub;
94- | ^^^ required by this bound in `BoundOnAssoc::Assoc`
95-
96- error[E0271]: type mismatch resolving `<() as Super>::Assoc == u16`
97- --> $DIR/super-assoc-mismatch.rs:23:18
98- |
99- LL | type Assoc = ();
100- | ^^ type mismatch resolving `<() as Super>::Assoc == u16`
101- |
102- note: expected this to be `u16`
103- --> $DIR/super-assoc-mismatch.rs:5:18
104- |
105- LL | type Assoc = u8;
106- | ^^
107- note: required for `<() as BoundOnAssoc>::Assoc` to implement `Sub`
108- --> $DIR/super-assoc-mismatch.rs:7:7
109- |
110- LL | trait Sub: Super<Assoc = u16> {}
111- | ^^^
112- note: required by a bound in `BoundOnAssoc::Assoc`
113- --> $DIR/super-assoc-mismatch.rs:20:17
47+ --> $DIR/super-assoc-mismatch.rs:18:17
11448 |
11549LL | type Assoc: Sub;
11650 | ^^^ required by this bound in `BoundOnAssoc::Assoc`
11751
11852error[E0277]: the trait bound `(): Sub` is not satisfied
119- --> $DIR/super-assoc-mismatch.rs:32 :21
53+ --> $DIR/super-assoc-mismatch.rs:29 :21
12054 |
12155LL | type Assoc<T> = ();
12256 | ^^ the trait `Sub` is not implemented for `()`, which is required by `<u8 as BoundOnGat>::Assoc<u8>: Sub`
@@ -127,35 +61,13 @@ help: this trait has no implementations, consider adding one
12761LL | trait Sub: Super<Assoc = u16> {}
12862 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12963note: required by a bound in `BoundOnGat`
130- --> $DIR/super-assoc-mismatch.rs:28:41
131- |
132- LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
133- | ^^^ required by this bound in `BoundOnGat`
134-
135- error[E0271]: type mismatch resolving `<() as Super>::Assoc == u16`
136- --> $DIR/super-assoc-mismatch.rs:32:21
137- |
138- LL | type Assoc<T> = ();
139- | ^^ type mismatch resolving `<() as Super>::Assoc == u16`
140- |
141- note: expected this to be `u16`
142- --> $DIR/super-assoc-mismatch.rs:5:18
143- |
144- LL | type Assoc = u8;
145- | ^^
146- note: required for `<u8 as BoundOnGat>::Assoc<u8>` to implement `Sub`
147- --> $DIR/super-assoc-mismatch.rs:7:7
148- |
149- LL | trait Sub: Super<Assoc = u16> {}
150- | ^^^
151- note: required by a bound in `BoundOnGat`
152- --> $DIR/super-assoc-mismatch.rs:28:41
64+ --> $DIR/super-assoc-mismatch.rs:25:41
15365 |
15466LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
15567 | ^^^ required by this bound in `BoundOnGat`
15668
15769error[E0277]: the trait bound `(): Sub` is not satisfied
158- --> $DIR/super-assoc-mismatch.rs:37 :26
70+ --> $DIR/super-assoc-mismatch.rs:33 :26
15971 |
16072LL | fn trivial_bound() where (): Sub {}
16173 | ^^^^^^^ the trait `Sub` is not implemented for `()`
@@ -168,21 +80,6 @@ LL | trait Sub: Super<Assoc = u16> {}
16880 = help: see issue #48214
16981 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
17082
171- error[E0271]: type mismatch resolving `<() as Super>::Assoc == u16`
172- --> $DIR/super-assoc-mismatch.rs:37:26
173- |
174- LL | fn trivial_bound() where (): Sub {}
175- | ^^^^^^^ type mismatch resolving `<() as Super>::Assoc == u16`
176- |
177- note: expected this to be `u8`
178- --> $DIR/super-assoc-mismatch.rs:5:18
179- |
180- LL | type Assoc = u8;
181- | ^^
182- = help: see issue #48214
183- = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
184-
185- error: aborting due to 10 previous errors
83+ error: aborting due to 5 previous errors
18684
187- Some errors have detailed explanations: E0271, E0277.
188- For more information about an error, try `rustc --explain E0271`.
85+ For more information about this error, try `rustc --explain E0277`.
0 commit comments