You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/trait-bounds/super-assoc-mismatch.stderr
+9-112
Original file line number
Diff line number
Diff line change
@@ -60,28 +60,6 @@ LL | fn trivial_bound() where (): Sub {}
60
60
= help: see issue #48214
61
61
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
62
62
63
-
error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
64
-
--> $DIR/super-assoc-mismatch.rs:46:22
65
-
|
66
-
LL | impl BoundOnSelf for Wrapper<()> {}
67
-
| ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
68
-
|
69
-
note: expected this to be `u16`
70
-
--> $DIR/super-assoc-mismatch.rs:42:18
71
-
|
72
-
LL | type Assoc = T::Assoc;
73
-
| ^^^^^^^^
74
-
note: required for `Wrapper<()>` to implement `Sub`
75
-
--> $DIR/super-assoc-mismatch.rs:7:7
76
-
|
77
-
LL | trait Sub: Super<Assoc = u16> {}
78
-
| ^^^
79
-
note: required by a bound in `BoundOnSelf`
80
-
--> $DIR/super-assoc-mismatch.rs:11:20
81
-
|
82
-
LL | trait BoundOnSelf: Sub {}
83
-
| ^^^ required by this bound in `BoundOnSelf`
84
-
85
63
error[E0277]: the trait bound `(): Sub` is not satisfied
86
64
--> $DIR/super-assoc-mismatch.rs:46:22
87
65
|
@@ -102,30 +80,8 @@ note: required by a bound in `BoundOnSelf`
102
80
LL | trait BoundOnSelf: Sub {}
103
81
| ^^^ required by this bound in `BoundOnSelf`
104
82
105
-
error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
106
-
--> $DIR/super-assoc-mismatch.rs:50:36
107
-
|
108
-
LL | impl BoundOnParam<Wrapper<()>> for Wrapper<()> {}
109
-
| ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
110
-
|
111
-
note: expected this to be `u16`
112
-
--> $DIR/super-assoc-mismatch.rs:42:18
113
-
|
114
-
LL | type Assoc = T::Assoc;
115
-
| ^^^^^^^^
116
-
note: required for `Wrapper<()>` to implement `Sub`
117
-
--> $DIR/super-assoc-mismatch.rs:7:7
118
-
|
119
-
LL | trait Sub: Super<Assoc = u16> {}
120
-
| ^^^
121
-
note: required by a bound in `BoundOnParam`
122
-
--> $DIR/super-assoc-mismatch.rs:15:23
123
-
|
124
-
LL | trait BoundOnParam<T: Sub> {}
125
-
| ^^^ required by this bound in `BoundOnParam`
126
-
127
83
error[E0277]: the trait bound `(): Sub` is not satisfied
128
-
--> $DIR/super-assoc-mismatch.rs:50:36
84
+
--> $DIR/super-assoc-mismatch.rs:49:36
129
85
|
130
86
LL | impl BoundOnParam<Wrapper<()>> for Wrapper<()> {}
131
87
| ^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -144,30 +100,8 @@ note: required by a bound in `BoundOnParam`
144
100
LL | trait BoundOnParam<T: Sub> {}
145
101
| ^^^ required by this bound in `BoundOnParam`
146
102
147
-
error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
148
-
--> $DIR/super-assoc-mismatch.rs:55:18
149
-
|
150
-
LL | type Assoc = Wrapper<()>;
151
-
| ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
152
-
|
153
-
note: expected this to be `u16`
154
-
--> $DIR/super-assoc-mismatch.rs:42:18
155
-
|
156
-
LL | type Assoc = T::Assoc;
157
-
| ^^^^^^^^
158
-
note: required for `<Wrapper<()> as BoundOnAssoc>::Assoc` to implement `Sub`
159
-
--> $DIR/super-assoc-mismatch.rs:7:7
160
-
|
161
-
LL | trait Sub: Super<Assoc = u16> {}
162
-
| ^^^
163
-
note: required by a bound in `BoundOnAssoc::Assoc`
164
-
--> $DIR/super-assoc-mismatch.rs:20:17
165
-
|
166
-
LL | type Assoc: Sub;
167
-
| ^^^ required by this bound in `BoundOnAssoc::Assoc`
168
-
169
103
error[E0277]: the trait bound `(): Sub` is not satisfied
170
-
--> $DIR/super-assoc-mismatch.rs:55:18
104
+
--> $DIR/super-assoc-mismatch.rs:53:18
171
105
|
172
106
LL | type Assoc = Wrapper<()>;
173
107
| ^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -186,30 +120,8 @@ note: required by a bound in `BoundOnAssoc::Assoc`
186
120
LL | type Assoc: Sub;
187
121
| ^^^ required by this bound in `BoundOnAssoc::Assoc`
188
122
189
-
error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
190
-
--> $DIR/super-assoc-mismatch.rs:61:21
191
-
|
192
-
LL | type Assoc<T> = Wrapper<()>;
193
-
| ^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
194
-
|
195
-
note: expected this to be `u16`
196
-
--> $DIR/super-assoc-mismatch.rs:42:18
197
-
|
198
-
LL | type Assoc = T::Assoc;
199
-
| ^^^^^^^^
200
-
note: required for `<Wrapper<()> as BoundOnGat>::Assoc<u8>` to implement `Sub`
201
-
--> $DIR/super-assoc-mismatch.rs:7:7
202
-
|
203
-
LL | trait Sub: Super<Assoc = u16> {}
204
-
| ^^^
205
-
note: required by a bound in `BoundOnGat`
206
-
--> $DIR/super-assoc-mismatch.rs:27:41
207
-
|
208
-
LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
209
-
| ^^^ required by this bound in `BoundOnGat`
210
-
211
123
error[E0277]: the trait bound `(): Sub` is not satisfied
212
-
--> $DIR/super-assoc-mismatch.rs:61:21
124
+
--> $DIR/super-assoc-mismatch.rs:58:21
213
125
|
214
126
LL | type Assoc<T> = Wrapper<()>;
215
127
| ^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `<Wrapper<()> as BoundOnGat>::Assoc<u8>: Sub`
@@ -228,22 +140,8 @@ note: required by a bound in `BoundOnGat`
228
140
LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
229
141
| ^^^ required by this bound in `BoundOnGat`
230
142
231
-
error[E0271]: type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
232
-
--> $DIR/super-assoc-mismatch.rs:66:34
233
-
|
234
-
LL | fn trivial_bound_wrapper() where Wrapper<()>: Sub {}
235
-
| ^^^^^^^^^^^^^^^^ type mismatch resolving `<Wrapper<()> as Super>::Assoc == u16`
236
-
|
237
-
note: expected this to be `u8`
238
-
--> $DIR/super-assoc-mismatch.rs:42:18
239
-
|
240
-
LL | type Assoc = T::Assoc;
241
-
| ^^^^^^^^
242
-
= help: see issue #48214
243
-
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
244
-
245
143
error[E0277]: the trait bound `(): Sub` is not satisfied
246
-
--> $DIR/super-assoc-mismatch.rs:66:34
144
+
--> $DIR/super-assoc-mismatch.rs:62:34
247
145
|
248
146
LL | fn trivial_bound_wrapper() where Wrapper<()>: Sub {}
249
147
| ^^^^^^^^^^^^^^^^ the trait `Sub` is not implemented for `()`, which is required by `Wrapper<()>: Sub`
@@ -260,26 +158,25 @@ LL | impl<T: Sub> Sub for Wrapper<T> {}
260
158
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
261
159
262
160
error[E0277]: the trait bound `(): SubGeneric<u16>` is not satisfied
263
-
--> $DIR/super-assoc-mismatch.rs:89:22
161
+
--> $DIR/super-assoc-mismatch.rs:84:22
264
162
|
265
163
LL | type Assoc1<T> = ();
266
164
| ^^ the trait `SubGeneric<u16>` is not implemented for `()`, which is required by `<u8 as MultiAssoc>::Assoc1<()>: SubGeneric<<u8 as MultiAssoc>::Assoc2>`
267
165
|
268
166
help: this trait has no implementations, consider adding one
0 commit comments