2022-10-25 16:15:15 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found struct variant `E::Empty3`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/empty-struct-braces-pat-1.rs:24:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | E::Empty3 => ()
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^ not a unit struct, unit variant or constant
|
2024-08-24 19:24:27 +00:00
|
|
|
|
|
|
|
|
help: use the struct variant pattern syntax
|
|
|
|
|
|
|
|
|
LL | E::Empty3 {} => ()
|
|
|
|
| ++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-10-25 16:15:15 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found struct variant `XE::XEmpty3`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/empty-struct-braces-pat-1.rs:31:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | XE::XEmpty3 => ()
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^^^ not a unit struct, unit variant or constant
|
2024-08-24 19:24:27 +00:00
|
|
|
|
|
|
|
|
help: use the struct variant pattern syntax
|
|
|
|
|
|
|
|
|
LL | XE::XEmpty3 {} => ()
|
|
|
|
| ++
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2022-10-25 16:15:15 +00:00
|
|
|
For more information about this error, try `rustc --explain E0533`.
|