]> git.proxmox.com Git - rustc.git/blame - src/test/ui/empty-struct-unit-expr.stderr
New upstream version 1.25.0+dfsg1
[rustc.git] / src / test / ui / empty-struct-unit-expr.stderr
CommitLineData
ff7c6d11
XL
1error[E0618]: expected function, found `Empty2`
2 --> $DIR/empty-struct-unit-expr.rs:25:14
3 |
ff7c6d11 418 | struct Empty2;
2c00a5a8
XL
5 | -------------- `Empty2` defined here
6...
725 | let e2 = Empty2(); //~ ERROR expected function, found `Empty2`
8 | ^^^^^^^^ not a function
ff7c6d11 9
2c00a5a8 10error[E0618]: expected function, found enum variant `E::Empty4`
ff7c6d11
XL
11 --> $DIR/empty-struct-unit-expr.rs:26:14
12 |
2c00a5a8
XL
1321 | Empty4
14 | ------ `E::Empty4` defined here
15...
ff7c6d11 1626 | let e4 = E::Empty4();
2c00a5a8
XL
17 | ^^^^^^^^^^^ not a function
18help: `E::Empty4` is a unit variant, you need to write it without the parenthesis
ff7c6d11 19 |
2c00a5a8
XL
2026 | let e4 = E::Empty4;
21 | ^^^^^^^^^
ff7c6d11
XL
22
23error[E0618]: expected function, found `empty_struct::XEmpty2`
24 --> $DIR/empty-struct-unit-expr.rs:28:15
25 |
2628 | let xe2 = XEmpty2(); //~ ERROR expected function, found `empty_struct::XEmpty2`
2c00a5a8 27 | ^^^^^^^^^ not a function
ff7c6d11 28
2c00a5a8 29error[E0618]: expected function, found enum variant `XE::XEmpty4`
ff7c6d11
XL
30 --> $DIR/empty-struct-unit-expr.rs:29:15
31 |
3229 | let xe4 = XE::XEmpty4();
2c00a5a8
XL
33 | ^^^^^^^^^^^^^ not a function
34help: `XE::XEmpty4` is a unit variant, you need to write it without the parenthesis
ff7c6d11 35 |
2c00a5a8
XL
3629 | let xe4 = XE::XEmpty4;
37 | ^^^^^^^^^^^
ff7c6d11
XL
38
39error: aborting due to 4 previous errors
40