@@ -11,33 +11,33 @@ LL | trait BadTrait<_> {}
11
11
| ^ expected identifier, found reserved identifier
12
12
13
13
error: expected identifier, found reserved identifier `_`
14
- --> $DIR/typeck_type_placeholder_item.rs:170 :19
14
+ --> $DIR/typeck_type_placeholder_item.rs:167 :19
15
15
|
16
16
LL | struct BadStruct1<_, _>(_);
17
17
| ^ expected identifier, found reserved identifier
18
18
19
19
error: expected identifier, found reserved identifier `_`
20
- --> $DIR/typeck_type_placeholder_item.rs:170 :22
20
+ --> $DIR/typeck_type_placeholder_item.rs:167 :22
21
21
|
22
22
LL | struct BadStruct1<_, _>(_);
23
23
| ^ expected identifier, found reserved identifier
24
24
25
25
error: expected identifier, found reserved identifier `_`
26
- --> $DIR/typeck_type_placeholder_item.rs:175 :19
26
+ --> $DIR/typeck_type_placeholder_item.rs:172 :19
27
27
|
28
28
LL | struct BadStruct2<_, T>(_, T);
29
29
| ^ expected identifier, found reserved identifier
30
30
31
31
error: associated constant in `impl` without body
32
- --> $DIR/typeck_type_placeholder_item.rs:208 :5
32
+ --> $DIR/typeck_type_placeholder_item.rs:203 :5
33
33
|
34
34
LL | const C: _;
35
35
| ^^^^^^^^^^-
36
36
| |
37
37
| help: provide a definition for the constant: `= <expr>;`
38
38
39
39
error[E0403]: the name `_` is already used for a generic parameter in this item's generic parameters
40
- --> $DIR/typeck_type_placeholder_item.rs:170 :22
40
+ --> $DIR/typeck_type_placeholder_item.rs:167 :22
41
41
|
42
42
LL | struct BadStruct1<_, _>(_);
43
43
| - ^ already used
@@ -351,18 +351,6 @@ help: use type parameters instead
351
351
LL | struct BadStruct<T>(T);
352
352
| ^ ^
353
353
354
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
355
- --> $DIR/typeck_type_placeholder_item.rs:159:32
356
- |
357
- LL | impl BadTrait<_> for BadStruct<_> {}
358
- | ^ not allowed in type signatures
359
-
360
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
361
- --> $DIR/typeck_type_placeholder_item.rs:159:15
362
- |
363
- LL | impl BadTrait<_> for BadStruct<_> {}
364
- | ^ not allowed in type signatures
365
-
366
354
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
367
355
--> $DIR/typeck_type_placeholder_item.rs:159:15
368
356
|
@@ -377,13 +365,13 @@ LL | impl<T> BadTrait<T> for BadStruct<T> {}
377
365
| ^^^ ^ ^
378
366
379
367
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
380
- --> $DIR/typeck_type_placeholder_item.rs:164 :34
368
+ --> $DIR/typeck_type_placeholder_item.rs:162 :34
381
369
|
382
370
LL | fn impl_trait() -> impl BadTrait<_> {
383
371
| ^ not allowed in type signatures
384
372
385
373
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
386
- --> $DIR/typeck_type_placeholder_item.rs:170 :25
374
+ --> $DIR/typeck_type_placeholder_item.rs:167 :25
387
375
|
388
376
LL | struct BadStruct1<_, _>(_);
389
377
| ^ not allowed in type signatures
@@ -394,7 +382,7 @@ LL | struct BadStruct1<T, _>(T);
394
382
| ^ ^
395
383
396
384
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
397
- --> $DIR/typeck_type_placeholder_item.rs:175 :25
385
+ --> $DIR/typeck_type_placeholder_item.rs:172 :25
398
386
|
399
387
LL | struct BadStruct2<_, T>(_, T);
400
388
| ^ not allowed in type signatures
@@ -405,13 +393,7 @@ LL | struct BadStruct2<K, T>(K, T);
405
393
| ^ ^
406
394
407
395
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
408
- --> $DIR/typeck_type_placeholder_item.rs:179:14
409
- |
410
- LL | type X = Box<_>;
411
- | ^ not allowed in type signatures
412
-
413
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
414
- --> $DIR/typeck_type_placeholder_item.rs:179:14
396
+ --> $DIR/typeck_type_placeholder_item.rs:176:14
415
397
|
416
398
LL | type X = Box<_>;
417
399
| ^ not allowed in type signatures
@@ -531,37 +513,25 @@ LL | fn clone_from<T>(&mut self, other: T) { *self = FnTest9; }
531
513
| ^^^ ^
532
514
533
515
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
534
- --> $DIR/typeck_type_placeholder_item.rs:164:34
535
- |
536
- LL | fn impl_trait() -> impl BadTrait<_> {
537
- | ^ not allowed in type signatures
538
-
539
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
540
- --> $DIR/typeck_type_placeholder_item.rs:186:21
541
- |
542
- LL | type Y = impl Trait<_>;
543
- | ^ not allowed in type signatures
544
-
545
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
546
- --> $DIR/typeck_type_placeholder_item.rs:186:21
516
+ --> $DIR/typeck_type_placeholder_item.rs:182:21
547
517
|
548
518
LL | type Y = impl Trait<_>;
549
519
| ^ not allowed in type signatures
550
520
551
521
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
552
- --> $DIR/typeck_type_placeholder_item.rs:195 :14
522
+ --> $DIR/typeck_type_placeholder_item.rs:190 :14
553
523
|
554
524
LL | type B = _;
555
525
| ^ not allowed in type signatures
556
526
557
527
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
558
- --> $DIR/typeck_type_placeholder_item.rs:197 :14
528
+ --> $DIR/typeck_type_placeholder_item.rs:192 :14
559
529
|
560
530
LL | const C: _;
561
531
| ^ not allowed in type signatures
562
532
563
533
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
564
- --> $DIR/typeck_type_placeholder_item.rs:199 :14
534
+ --> $DIR/typeck_type_placeholder_item.rs:194 :14
565
535
|
566
536
LL | const D: _ = 42;
567
537
| ^
@@ -606,33 +576,33 @@ LL | fn clone(&self) -> _ { FnTest9 }
606
576
| help: replace with the correct return type: `main::FnTest9`
607
577
608
578
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
609
- --> $DIR/typeck_type_placeholder_item.rs:204 :14
579
+ --> $DIR/typeck_type_placeholder_item.rs:199 :14
610
580
|
611
581
LL | type A = _;
612
582
| ^ not allowed in type signatures
613
583
614
584
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
615
- --> $DIR/typeck_type_placeholder_item.rs:206 :14
585
+ --> $DIR/typeck_type_placeholder_item.rs:201 :14
616
586
|
617
587
LL | type B = _;
618
588
| ^ not allowed in type signatures
619
589
620
590
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
621
- --> $DIR/typeck_type_placeholder_item.rs:208 :14
591
+ --> $DIR/typeck_type_placeholder_item.rs:203 :14
622
592
|
623
593
LL | const C: _;
624
594
| ^ not allowed in type signatures
625
595
626
596
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
627
- --> $DIR/typeck_type_placeholder_item.rs:211 :14
597
+ --> $DIR/typeck_type_placeholder_item.rs:206 :14
628
598
|
629
599
LL | const D: _ = 42;
630
600
| ^
631
601
| |
632
602
| not allowed in type signatures
633
603
| help: replace `_` with the correct type: `i32`
634
604
635
- error: aborting due to 71 previous errors
605
+ error: aborting due to 66 previous errors
636
606
637
607
Some errors have detailed explanations: E0121, E0282, E0403.
638
608
For more information about an error, try `rustc --explain E0121`.
0 commit comments