fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
914 B26 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   | 
19  ::: $DIR/auxiliary/empty-struct.rs:7:5
20   |
21LL |     XEmpty4,
22   |     ------- similarly named unit variant `XEmpty4` defined here
23
24error: aborting due to 2 previous errors
25
26For more information about this error, try `rustc --explain E0532`.