fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
775 B21 linesraw
1error[E0532]: expected unit struct, unit variant or constant, found struct variant `E::Empty3`
2  --> $DIR/empty-struct-braces-pat-1.rs:24:9
3   |
4LL |     Empty3 {}
5   |     --------- `E::Empty3` defined here
6...
7LL |         E::Empty3 => ()
8   |         ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
9
10error[E0532]: expected unit struct, unit variant or constant, found struct variant `XE::XEmpty3`
11  --> $DIR/empty-struct-braces-pat-1.rs:31:9
12   |
13LL |         XE::XEmpty3 => ()
14   |         ^^^^-------
15   |         |   |
16   |         |   help: a unit variant with a similar name exists: `XEmpty4`
17   |         did you mean `XE::XEmpty3 { /* fields */ }`?
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0532`.