@@ -15,30 +15,8 @@ note: required by a bound in `BoundOnSelf`
15
15
LL | trait BoundOnSelf: Sub {}
16
16
| ^^^ required by this bound in `BoundOnSelf`
17
17
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
-
40
18
error[E0277]: the trait bound `(): Sub` is not satisfied
41
- --> $DIR/super-assoc-mismatch.rs:15 :27
19
+ --> $DIR/super-assoc-mismatch.rs:14 :27
42
20
|
43
21
LL | impl BoundOnParam<()> for () {}
44
22
| ^^ the trait `Sub` is not implemented for `()`
@@ -49,35 +27,13 @@ help: this trait has no implementations, consider adding one
49
27
LL | trait Sub: Super<Assoc = u16> {}
50
28
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51
29
note: 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
75
31
|
76
32
LL | trait BoundOnParam<T: Sub> {}
77
33
| ^^^ required by this bound in `BoundOnParam`
78
34
79
35
error[E0277]: the trait bound `(): Sub` is not satisfied
80
- --> $DIR/super-assoc-mismatch.rs:23 :18
36
+ --> $DIR/super-assoc-mismatch.rs:21 :18
81
37
|
82
38
LL | type Assoc = ();
83
39
| ^^ the trait `Sub` is not implemented for `()`
@@ -88,35 +44,13 @@ help: this trait has no implementations, consider adding one
88
44
LL | trait Sub: Super<Assoc = u16> {}
89
45
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
46
note: 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
114
48
|
115
49
LL | type Assoc: Sub;
116
50
| ^^^ required by this bound in `BoundOnAssoc::Assoc`
117
51
118
52
error[E0277]: the trait bound `(): Sub` is not satisfied
119
- --> $DIR/super-assoc-mismatch.rs:32 :21
53
+ --> $DIR/super-assoc-mismatch.rs:29 :21
120
54
|
121
55
LL | type Assoc<T> = ();
122
56
| ^^ 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
127
61
LL | trait Sub: Super<Assoc = u16> {}
128
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129
63
note: 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
153
65
|
154
66
LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
155
67
| ^^^ required by this bound in `BoundOnGat`
156
68
157
69
error[E0277]: the trait bound `(): Sub` is not satisfied
158
- --> $DIR/super-assoc-mismatch.rs:37 :26
70
+ --> $DIR/super-assoc-mismatch.rs:33 :26
159
71
|
160
72
LL | fn trivial_bound() where (): Sub {}
161
73
| ^^^^^^^ the trait `Sub` is not implemented for `()`
@@ -168,21 +80,6 @@ LL | trait Sub: Super<Assoc = u16> {}
168
80
= help: see issue #48214
169
81
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
170
82
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
186
84
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