]> git.proxmox.com Git - rustc.git/blame - src/test/ui/typeck/typeck_type_placeholder_item_help.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / typeck / typeck_type_placeholder_item_help.stderr
CommitLineData
416331ca
XL
1error[E0121]: the type placeholder `_` is not allowed within types on item signatures
2 --> $DIR/typeck_type_placeholder_item_help.rs:4:15
3 |
4LL | fn test1() -> _ { Some(42) }
5 | ^
6 | |
7 | not allowed in type signatures
1b1a35ee 8 | help: replace with the correct return type: `Option<i32>`
416331ca
XL
9
10error[E0121]: the type placeholder `_` is not allowed within types on item signatures
11 --> $DIR/typeck_type_placeholder_item_help.rs:7:14
12 |
13LL | const TEST2: _ = 42u32;
14 | ^
15 | |
16 | not allowed in type signatures
17 | help: replace `_` with the correct type: `u32`
18
19error[E0121]: the type placeholder `_` is not allowed within types on item signatures
20 --> $DIR/typeck_type_placeholder_item_help.rs:10:14
21 |
22LL | const TEST3: _ = Some(42);
23 | ^
24 | |
25 | not allowed in type signatures
1b1a35ee 26 | help: replace `_` with the correct type: `Option<i32>`
416331ca
XL
27
28error[E0121]: the type placeholder `_` is not allowed within types on item signatures
5869c6ff 29 --> $DIR/typeck_type_placeholder_item_help.rs:13:22
416331ca 30 |
5869c6ff 31LL | const TEST4: fn() -> _ = 42;
6a06907d 32 | ^ not allowed in type signatures
5869c6ff
XL
33
34error[E0121]: the type placeholder `_` is not allowed within types on item signatures
35 --> $DIR/typeck_type_placeholder_item_help.rs:17:18
36 |
37LL | const TEST5: _ = 42;
416331ca
XL
38 | ^
39 | |
40 | not allowed in type signatures
41 | help: replace `_` with the correct type: `i32`
42
43error[E0121]: the type placeholder `_` is not allowed within types on item signatures
5869c6ff 44 --> $DIR/typeck_type_placeholder_item_help.rs:24:18
416331ca 45 |
5869c6ff 46LL | const TEST6: _ = 13;
416331ca
XL
47 | ^
48 | |
49 | not allowed in type signatures
50 | help: replace `_` with the correct type: `i32`
51
5869c6ff 52error: aborting due to 6 previous errors
416331ca
XL
53
54For more information about this error, try `rustc --explain E0121`.