fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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