@@ -26,23 +26,32 @@ LL | const TEST3: _ = Some(42);
26
26
| help: replace `_` with the correct type: `Option<i32>`
27
27
28
28
error[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
30
30
|
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;
32
41
| ^
33
42
| |
34
43
| not allowed in type signatures
35
44
| help: replace `_` with the correct type: `i32`
36
45
37
46
error[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
39
48
|
40
- LL | const TEST5 : _ = 13;
49
+ LL | const TEST6 : _ = 13;
41
50
| ^
42
51
| |
43
52
| not allowed in type signatures
44
53
| help: replace `_` with the correct type: `i32`
45
54
46
- error: aborting due to 5 previous errors
55
+ error: aborting due to 6 previous errors
47
56
48
57
For more information about this error, try `rustc --explain E0121`.
0 commit comments