]> git.proxmox.com Git - rustc.git/blame - src/test/ui/empty/empty-struct-unit-expr.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / empty / empty-struct-unit-expr.stderr
CommitLineData
ff7c6d11 1error[E0618]: expected function, found `Empty2`
0731742a 2 --> $DIR/empty-struct-unit-expr.rs:15:14
ff7c6d11 3 |
0531ce1d 4LL | struct Empty2;
2c00a5a8
XL
5 | -------------- `Empty2` defined here
6...
532ac7d7 7LL | let e2 = Empty2();
a1dfa0c6
XL
8 | ^^^^^^--
9 | |
10 | call expression requires function
ff7c6d11 11
2c00a5a8 12error[E0618]: expected function, found enum variant `E::Empty4`
0731742a 13 --> $DIR/empty-struct-unit-expr.rs:16:14
ff7c6d11 14 |
0531ce1d 15LL | Empty4
2c00a5a8
XL
16 | ------ `E::Empty4` defined here
17...
0531ce1d 18LL | let e4 = E::Empty4();
a1dfa0c6
XL
19 | ^^^^^^^^^--
20 | |
21 | call expression requires function
e74abb32 22 |
3c0e092e 23help: `E::Empty4` is a unit variant, you need to write it without the parentheses
ff7c6d11 24 |
3c0e092e
XL
25LL - let e4 = E::Empty4();
26LL + let e4 = E::Empty4;
923072b8 27 |
ff7c6d11
XL
28
29error[E0618]: expected function, found `empty_struct::XEmpty2`
0731742a 30 --> $DIR/empty-struct-unit-expr.rs:18:15
ff7c6d11 31 |
532ac7d7 32LL | let xe2 = XEmpty2();
a1dfa0c6
XL
33 | ^^^^^^^--
34 | |
35 | call expression requires function
ff7c6d11 36
2c00a5a8 37error[E0618]: expected function, found enum variant `XE::XEmpty4`
0731742a 38 --> $DIR/empty-struct-unit-expr.rs:19:15
ff7c6d11 39 |
0531ce1d 40LL | let xe4 = XE::XEmpty4();
a1dfa0c6
XL
41 | ^^^^^^^^^^^--
42 | |
43 | call expression requires function
e74abb32 44 |
3c0e092e 45help: `XE::XEmpty4` is a unit variant, you need to write it without the parentheses
ff7c6d11 46 |
3c0e092e
XL
47LL - let xe4 = XE::XEmpty4();
48LL + let xe4 = XE::XEmpty4;
923072b8 49 |
ff7c6d11
XL
50
51error: aborting due to 4 previous errors
52
0531ce1d 53For more information about this error, try `rustc --explain E0618`.