]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/typeck_type_placeholder_item_help.stderr
Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errors
[rust.git] / tests / ui / typeck / typeck_type_placeholder_item_help.stderr
1 error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
2   --> $DIR/typeck_type_placeholder_item_help.rs:4:15
3    |
4 LL | fn test1() -> _ { Some(42) }
5    |               ^
6    |               |
7    |               not allowed in type signatures
8    |               help: replace with the correct return type: `Option<i32>`
9
10 error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
11   --> $DIR/typeck_type_placeholder_item_help.rs:7:14
12    |
13 LL | const TEST2: _ = 42u32;
14    |              ^
15    |              |
16    |              not allowed in type signatures
17    |              help: replace with the correct type: `u32`
18
19 error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
20   --> $DIR/typeck_type_placeholder_item_help.rs:10:14
21    |
22 LL | const TEST3: _ = Some(42);
23    |              ^
24    |              |
25    |              not allowed in type signatures
26    |              help: replace with the correct type: `Option<i32>`
27
28 error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
29   --> $DIR/typeck_type_placeholder_item_help.rs:13:22
30    |
31 LL | const TEST4: fn() -> _ = 42;
32    |                      ^ not allowed in type signatures
33
34 error[E0121]: the placeholder `_` is not allowed within types on item signatures for constant items
35   --> $DIR/typeck_type_placeholder_item_help.rs:13:22
36    |
37 LL | const TEST4: fn() -> _ = 42;
38    |                      ^ not allowed in type signatures
39
40 error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
41   --> $DIR/typeck_type_placeholder_item_help.rs:18:18
42    |
43 LL |     const TEST5: _ = 42;
44    |                  ^
45    |                  |
46    |                  not allowed in type signatures
47    |                  help: replace with the correct type: `i32`
48
49 error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
50   --> $DIR/typeck_type_placeholder_item_help.rs:25:18
51    |
52 LL |     const TEST6: _ = 13;
53    |                  ^
54    |                  |
55    |                  not allowed in type signatures
56    |                  help: replace with the correct type: `i32`
57
58 error: aborting due to 7 previous errors
59
60 For more information about this error, try `rustc --explain E0121`.