]> git.lizzy.rs Git - rust.git/blob - src/test/ui/empty/empty-struct-braces-pat-1.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / empty / empty-struct-braces-pat-1.stderr
1 error[E0532]: expected unit struct/variant or constant, found struct variant `E::Empty3`
2   --> $DIR/empty-struct-braces-pat-1.rs:34:9
3    |
4 LL |         E::Empty3 => ()
5    |         ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
6
7 error[E0532]: expected unit struct/variant or constant, found struct variant `XE::XEmpty3`
8   --> $DIR/empty-struct-braces-pat-1.rs:41:9
9    |
10 LL |         XE::XEmpty3 => ()
11    |         ^^^^-------
12    |         |   |
13    |         |   did you mean `XEmpty4`?
14    |         did you mean `XE::XEmpty3 { /* fields */ }`?
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0532`.