@@ -29,7 +29,7 @@ LL | struct BadStruct2<_, T>(_, T);
2929 | ^ expected identifier, found reserved identifier
3030
3131error: associated constant in `impl` without body
32- --> $DIR/typeck_type_placeholder_item.rs:203 :5
32+ --> $DIR/typeck_type_placeholder_item.rs:205 :5
3333 |
3434LL | const C: _;
3535 | ^^^^^^^^^^-
@@ -545,6 +545,12 @@ LL | const D: _ = 42;
545545 | not allowed in type signatures
546546 | help: replace `_` with the correct type: `i32`
547547
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+
548554error[E0121]: the type placeholder `_` is not allowed within types on item signatures
549555 --> $DIR/typeck_type_placeholder_item.rs:40:24
550556 |
@@ -582,33 +588,33 @@ LL | fn clone(&self) -> _ { FnTest9 }
582588 | help: replace with the correct return type: `main::FnTest9`
583589
584590error[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
586592 |
587593LL | type A = _;
588594 | ^ not allowed in type signatures
589595
590596error[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
592598 |
593599LL | type B = _;
594600 | ^ not allowed in type signatures
595601
596602error[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
598604 |
599605LL | const C: _;
600606 | ^ not allowed in type signatures
601607
602608error[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
604610 |
605611LL | const D: _ = 42;
606612 | ^
607613 | |
608614 | not allowed in type signatures
609615 | help: replace `_` with the correct type: `i32`
610616
611- error: aborting due to 66 previous errors
617+ error: aborting due to 67 previous errors
612618
613619Some errors have detailed explanations: E0121, E0282, E0403.
614620For more information about an error, try `rustc --explain E0121`.
0 commit comments