@@ -29,7 +29,7 @@ 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:203 :5
32
+ --> $DIR/typeck_type_placeholder_item.rs:205 :5
33
33
|
34
34
LL | const C: _;
35
35
| ^^^^^^^^^^-
@@ -545,6 +545,12 @@ LL | const D: _ = 42;
545
545
| not allowed in type signatures
546
546
| help: replace `_` with the correct type: `i32`
547
547
548
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures
549
+ --> $DIR/typeck_type_placeholder_item.rs:197:26
550
+ |
551
+ LL | type F: std::ops::Fn(_);
552
+ | ^ not allowed in type signatures
553
+
548
554
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
549
555
--> $DIR/typeck_type_placeholder_item.rs:40:24
550
556
|
@@ -582,33 +588,33 @@ LL | fn clone(&self) -> _ { FnTest9 }
582
588
| help: replace with the correct return type: `main::FnTest9`
583
589
584
590
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
585
- --> $DIR/typeck_type_placeholder_item.rs:199 :14
591
+ --> $DIR/typeck_type_placeholder_item.rs:201 :14
586
592
|
587
593
LL | type A = _;
588
594
| ^ not allowed in type signatures
589
595
590
596
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
591
- --> $DIR/typeck_type_placeholder_item.rs:201 :14
597
+ --> $DIR/typeck_type_placeholder_item.rs:203 :14
592
598
|
593
599
LL | type B = _;
594
600
| ^ not allowed in type signatures
595
601
596
602
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
597
- --> $DIR/typeck_type_placeholder_item.rs:203 :14
603
+ --> $DIR/typeck_type_placeholder_item.rs:205 :14
598
604
|
599
605
LL | const C: _;
600
606
| ^ not allowed in type signatures
601
607
602
608
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
603
- --> $DIR/typeck_type_placeholder_item.rs:206 :14
609
+ --> $DIR/typeck_type_placeholder_item.rs:208 :14
604
610
|
605
611
LL | const D: _ = 42;
606
612
| ^
607
613
| |
608
614
| not allowed in type signatures
609
615
| help: replace `_` with the correct type: `i32`
610
616
611
- error: aborting due to 66 previous errors
617
+ error: aborting due to 67 previous errors
612
618
613
619
Some errors have detailed explanations: E0121, E0282, E0403.
614
620
For more information about an error, try `rustc --explain E0121`.
0 commit comments