]> git.lizzy.rs Git - rust.git/blob - tests/ui/empty/empty-struct-braces-pat-1.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / empty / empty-struct-braces-pat-1.stderr
1 error[E0533]: expected unit struct, unit variant or constant, found struct variant `E::Empty3`
2   --> $DIR/empty-struct-braces-pat-1.rs:24:9
3    |
4 LL |         E::Empty3 => ()
5    |         ^^^^^^^^^ not a unit struct, unit variant or constant
6
7 error[E0533]: expected unit struct, unit variant or constant, found struct variant `XE::XEmpty3`
8   --> $DIR/empty-struct-braces-pat-1.rs:31:9
9    |
10 LL |         XE::XEmpty3 => ()
11    |         ^^^^^^^^^^^ not a unit struct, unit variant or constant
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0533`.