1 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
2 --> $DIR/typeck_type_placeholder_item_help.rs:4:15
4 LL | fn test1() -> _ { Some(42) }
7 | not allowed in type signatures
8 | help: replace with the correct return type: `Option<i32>`
10 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
11 --> $DIR/typeck_type_placeholder_item_help.rs:7:14
13 LL | const TEST2: _ = 42u32;
16 | not allowed in type signatures
17 | help: replace `_` with the correct type: `u32`
19 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
20 --> $DIR/typeck_type_placeholder_item_help.rs:10:14
22 LL | const TEST3: _ = Some(42);
25 | not allowed in type signatures
26 | help: replace `_` with the correct type: `Option<i32>`
28 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
29 --> $DIR/typeck_type_placeholder_item_help.rs:13:22
31 LL | const TEST4: fn() -> _ = 42;
32 | ^ not allowed in type signatures
34 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
35 --> $DIR/typeck_type_placeholder_item_help.rs:17:18
37 LL | const TEST5: _ = 42;
40 | not allowed in type signatures
41 | help: replace `_` with the correct type: `i32`
43 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
44 --> $DIR/typeck_type_placeholder_item_help.rs:24:18
46 LL | const TEST6: _ = 13;
49 | not allowed in type signatures
50 | help: replace `_` with the correct type: `i32`
52 error: aborting due to 6 previous errors
54 For more information about this error, try `rustc --explain E0121`.