@@ -26,23 +26,32 @@ LL | const TEST3: _ = Some(42);
2626 | help: replace `_` with the correct type: `Option<i32>`
2727
2828error[E0121]: the type placeholder `_` is not allowed within types on item signatures
29- --> $DIR/typeck_type_placeholder_item_help.rs:14:18
29+ --> $DIR/typeck_type_placeholder_item_help.rs:13:22
3030 |
31- LL | const TEST4: _ = 42;
31+ LL | const TEST4: fn() -> _ = 42;
32+ | ^
33+ | |
34+ | not allowed in type signatures
35+ | help: use type parameters instead: `T`
36+
37+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures
38+ --> $DIR/typeck_type_placeholder_item_help.rs:17:18
39+ |
40+ LL | const TEST5: _ = 42;
3241 | ^
3342 | |
3443 | not allowed in type signatures
3544 | help: replace `_` with the correct type: `i32`
3645
3746error[E0121]: the type placeholder `_` is not allowed within types on item signatures
38- --> $DIR/typeck_type_placeholder_item_help.rs:21 :18
47+ --> $DIR/typeck_type_placeholder_item_help.rs:24 :18
3948 |
40- LL | const TEST5 : _ = 13;
49+ LL | const TEST6 : _ = 13;
4150 | ^
4251 | |
4352 | not allowed in type signatures
4453 | help: replace `_` with the correct type: `i32`
4554
46- error: aborting due to 5 previous errors
55+ error: aborting due to 6 previous errors
4756
4857For more information about this error, try `rustc --explain E0121`.
0 commit comments