fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0618]: expected function, found `Empty2` 2 --> $DIR/empty-struct-unit-expr.rs:15:14 3 | 4LL | struct Empty2; 5 | -------------- `Empty2` defined here 6... 7LL | let e2 = Empty2(); 8 | ^^^^^^-- 9 | | 10 | call expression requires function 11 12error[E0618]: expected function, found enum variant `E::Empty4` 13 --> $DIR/empty-struct-unit-expr.rs:16:14 14 | 15LL | Empty4 16 | ------ `E::Empty4` defined here 17... 18LL | let e4 = E::Empty4(); 19 | ^^^^^^^^^-- 20 | | 21 | call expression requires function 22help: `E::Empty4` is a unit variant, you need to write it without the parenthesis 23 | 24LL | let e4 = E::Empty4; 25 | ^^^^^^^^^ 26 27error[E0618]: expected function, found `empty_struct::XEmpty2` 28 --> $DIR/empty-struct-unit-expr.rs:18:15 29 | 30LL | let xe2 = XEmpty2(); 31 | ^^^^^^^-- 32 | | 33 | call expression requires function 34 35error[E0618]: expected function, found enum variant `XE::XEmpty4` 36 --> $DIR/empty-struct-unit-expr.rs:19:15 37 | 38LL | let xe4 = XE::XEmpty4(); 39 | ^^^^^^^^^^^-- 40 | | 41 | call expression requires function 42help: `XE::XEmpty4` is a unit variant, you need to write it without the parenthesis 43 | 44LL | let xe4 = XE::XEmpty4; 45 | ^^^^^^^^^^^ 46 47error: aborting due to 4 previous errors 48 49For more information about this error, try `rustc --explain E0618`.