1 error[E0532]: expected unit struct, unit variant or constant, found struct variant `E::Empty3`
2 --> $DIR/empty-struct-braces-pat-1.rs:24:9
5 | --------- `E::Empty3` defined here
8 | ^^^^^^^^^ help: use struct pattern syntax instead: `E::Empty3 {}`
10 error[E0532]: expected unit struct, unit variant or constant, found struct variant `XE::XEmpty3`
11 --> $DIR/empty-struct-braces-pat-1.rs:31:9
13 LL | XE::XEmpty3 => ()
16 ::: $DIR/auxiliary/empty-struct.rs:6:5
19 | ------- `XE::XEmpty3` defined here
21 | ------- similarly named unit variant `XEmpty4` defined here
23 help: use struct pattern syntax instead
25 LL | XE::XEmpty3 { /* fields */ } => ()
26 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
27 help: a unit variant with a similar name exists
29 LL | XE::XEmpty4 => ()
32 error: aborting due to 2 previous errors
34 For more information about this error, try `rustc --explain E0532`.