@@ -5,7 +5,6 @@ LL | impl Tr3<N
5
5
| __________^
6
6
LL | |
7
7
LL | |
8
- LL | |
9
8
LL | | = 42, T2 = Qux, T3 = usize> for Bar {
10
9
| |____^
11
10
|
@@ -14,7 +13,7 @@ LL | | = 42, T2 = Qux, T3 = usize> for Bar {
14
13
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
15
14
16
15
error[E0658]: associated const equality is incomplete
17
- --> $DIR/associated-types-eq-2.rs:85 :10
16
+ --> $DIR/associated-types-eq-2.rs:84 :10
18
17
|
19
18
LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
20
19
| ^^^^^^
@@ -24,7 +23,7 @@ LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
24
23
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
25
24
26
25
error[E0658]: associated const equality is incomplete
27
- --> $DIR/associated-types-eq-2.rs:100 :14
26
+ --> $DIR/associated-types-eq-2.rs:98 :14
28
27
|
29
28
LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
30
29
| ^^^^^^^
@@ -34,7 +33,7 @@ LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
34
33
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
35
34
36
35
error[E0658]: associated const equality is incomplete
37
- --> $DIR/associated-types-eq-2.rs:108 :10
36
+ --> $DIR/associated-types-eq-2.rs:106 :10
38
37
|
39
38
LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
40
39
| ^^^^^^
@@ -190,30 +189,13 @@ help: to use `GenericTerm<i32>` as a generic argument specify it directly
190
189
LL | impl Tr2<i32, Qux, GenericTerm<i32>> for Bar {
191
190
| ~~~~~~~~~~~~~~~~
192
191
193
- error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
194
- --> $DIR/associated-types-eq-2.rs:76:6
195
- |
196
- LL | impl Tr3<N
197
- | ^^^ expected 3 generic arguments
198
- |
199
- note: trait defined here, with 3 generic parameters: `N`, `T2`, `T3`
200
- --> $DIR/associated-types-eq-2.rs:69:7
201
- |
202
- LL | trait Tr3<const N: i32, T2, T3> {
203
- | ^^^ ------------ -- --
204
- help: add missing generic arguments
205
- |
206
- LL | impl Tr3<N, T2, T3, N
207
- | ++++++++++
208
-
209
192
error[E0229]: associated item constraints are not allowed here
210
193
--> $DIR/associated-types-eq-2.rs:76:10
211
194
|
212
195
LL | impl Tr3<N
213
196
| __________^
214
197
LL | |
215
198
LL | |
216
- LL | |
217
199
LL | | = 42, T2 = Qux, T3 = usize> for Bar {
218
200
| |____^ associated item constraint not allowed here
219
201
|
@@ -223,7 +205,7 @@ LL | impl Tr3<42, T2 = Qux, T3 = usize> for Bar {
223
205
| ~~
224
206
225
207
error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
226
- --> $DIR/associated-types-eq-2.rs:85 :6
208
+ --> $DIR/associated-types-eq-2.rs:84 :6
227
209
|
228
210
LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
229
211
| ^^^ expected 3 generic arguments
@@ -239,7 +221,7 @@ LL | impl Tr3<N, T2, T3, n = 42, T2 = Qux, T3 = usize> for Qux {
239
221
| ++++++++++
240
222
241
223
error[E0229]: associated item constraints are not allowed here
242
- --> $DIR/associated-types-eq-2.rs:85 :10
224
+ --> $DIR/associated-types-eq-2.rs:84 :10
243
225
|
244
226
LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
245
227
| ^^^^^^ associated item constraint not allowed here
@@ -249,24 +231,8 @@ help: consider removing this associated item binding
249
231
LL | impl Tr3<n = 42, T2 = Qux, T3 = usize> for Qux {
250
232
| ~~~~~~~
251
233
252
- error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
253
- --> $DIR/associated-types-eq-2.rs:93:6
254
- |
255
- LL | impl Tr3<N = u32, T2 = Qux, T3 = usize> for Bar {
256
- | ^^^ expected 3 generic arguments
257
- |
258
- note: trait defined here, with 3 generic parameters: `N`, `T2`, `T3`
259
- --> $DIR/associated-types-eq-2.rs:69:7
260
- |
261
- LL | trait Tr3<const N: i32, T2, T3> {
262
- | ^^^ ------------ -- --
263
- help: add missing generic arguments
264
- |
265
- LL | impl Tr3<N, T2, T3, N = u32, T2 = Qux, T3 = usize> for Bar {
266
- | ++++++++++
267
-
268
234
error[E0229]: associated item constraints are not allowed here
269
- --> $DIR/associated-types-eq-2.rs:93 :10
235
+ --> $DIR/associated-types-eq-2.rs:92 :10
270
236
|
271
237
LL | impl Tr3<N = u32, T2 = Qux, T3 = usize> for Bar {
272
238
| ^^^^^^^ associated item constraint not allowed here
@@ -277,7 +243,7 @@ LL | impl Tr3<N = u32, T2 = Qux, T3 = usize> for Bar {
277
243
| ~~~~~~~~
278
244
279
245
error[E0107]: trait takes 3 generic arguments but 1 generic argument was supplied
280
- --> $DIR/associated-types-eq-2.rs:100 :6
246
+ --> $DIR/associated-types-eq-2.rs:98 :6
281
247
|
282
248
LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
283
249
| ^^^ -- supplied 1 generic argument
@@ -295,7 +261,7 @@ LL | impl Tr3<42, T2, T3, T2 = 42, T3 = usize> for Bar {
295
261
| ++++++++
296
262
297
263
error[E0229]: associated item constraints are not allowed here
298
- --> $DIR/associated-types-eq-2.rs:100 :14
264
+ --> $DIR/associated-types-eq-2.rs:98 :14
299
265
|
300
266
LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
301
267
| ^^^^^^^ associated item constraint not allowed here
@@ -306,7 +272,7 @@ LL | impl Tr3<42, T2 = 42, T3 = usize> for Bar {
306
272
| ~~~~~~~~~
307
273
308
274
error[E0107]: trait takes 3 generic arguments but 0 generic arguments were supplied
309
- --> $DIR/associated-types-eq-2.rs:108 :6
275
+ --> $DIR/associated-types-eq-2.rs:106 :6
310
276
|
311
277
LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
312
278
| ^^^ expected 3 generic arguments
@@ -322,7 +288,7 @@ LL | impl Tr3<N, T2, T3, X = 42, Y = Qux, Z = usize> for Bar {
322
288
| ++++++++++
323
289
324
290
error[E0229]: associated item constraints are not allowed here
325
- --> $DIR/associated-types-eq-2.rs:108 :10
291
+ --> $DIR/associated-types-eq-2.rs:106 :10
326
292
|
327
293
LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
328
294
| ^^^^^^ associated item constraint not allowed here
@@ -333,13 +299,13 @@ LL | impl Tr3<X = 42, Y = Qux, Z = usize> for Bar {
333
299
| ~~~~~~~
334
300
335
301
error[E0107]: struct takes 1 generic argument but 0 generic arguments were supplied
336
- --> $DIR/associated-types-eq-2.rs:119 :13
302
+ --> $DIR/associated-types-eq-2.rs:117 :13
337
303
|
338
304
LL | impl<'a, T> St<'a , T = Qux> {
339
305
| ^^ expected 1 generic argument
340
306
|
341
307
note: struct defined here, with 1 generic parameter: `T`
342
- --> $DIR/associated-types-eq-2.rs:117 :8
308
+ --> $DIR/associated-types-eq-2.rs:115 :8
343
309
|
344
310
LL | struct St<'a, T> { v: &'a T }
345
311
| ^^ -
@@ -349,7 +315,7 @@ LL | impl<'a, T> St<'a, T , T = Qux> {
349
315
| +++
350
316
351
317
error[E0229]: associated item constraints are not allowed here
352
- --> $DIR/associated-types-eq-2.rs:119 :21
318
+ --> $DIR/associated-types-eq-2.rs:117 :21
353
319
|
354
320
LL | impl<'a, T> St<'a , T = Qux> {
355
321
| ^^^^^^^ associated item constraint not allowed here
@@ -359,7 +325,7 @@ help: to use `Qux` as a generic argument specify it directly
359
325
LL | impl<'a, T> St<'a , Qux> {
360
326
| ~~~
361
327
362
- error: aborting due to 27 previous errors
328
+ error: aborting due to 25 previous errors
363
329
364
330
Some errors have detailed explanations: E0046, E0107, E0229, E0658.
365
331
For more information about an error, try `rustc --explain E0046`.
0 commit comments