fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.7 KiB49 linesraw
1error[E0532]: expected tuple struct or tuple variant, found struct variant `E::Empty3`
2  --> $DIR/empty-struct-braces-pat-3.rs:17:9
3   |
4LL |     Empty3 {}
5   |     --------- `E::Empty3` defined here
6...
7LL |         E::Empty3() => ()
8   |         ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
9
10error[E0532]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
11  --> $DIR/empty-struct-braces-pat-3.rs:21:9
12   |
13LL |         XE::XEmpty3() => ()
14   |         ^^^^-------
15   |         |   |
16   |         |   help: a tuple variant with a similar name exists: `XEmpty5`
17   |         did you mean `XE::XEmpty3 { /* fields */ }`?
18   | 
19  ::: $DIR/auxiliary/empty-struct.rs:8:5
20   |
21LL |     XEmpty5(),
22   |     --------- similarly named tuple variant `XEmpty5` defined here
23
24error[E0532]: expected tuple struct or tuple variant, found struct variant `E::Empty3`
25  --> $DIR/empty-struct-braces-pat-3.rs:25:9
26   |
27LL |     Empty3 {}
28   |     --------- `E::Empty3` defined here
29...
30LL |         E::Empty3(..) => ()
31   |         ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
32
33error[E0532]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
34  --> $DIR/empty-struct-braces-pat-3.rs:29:9
35   |
36LL |         XE::XEmpty3(..) => ()
37   |         ^^^^-------
38   |         |   |
39   |         |   help: a tuple variant with a similar name exists: `XEmpty5`
40   |         did you mean `XE::XEmpty3 { /* fields */ }`?
41   | 
42  ::: $DIR/auxiliary/empty-struct.rs:8:5
43   |
44LL |     XEmpty5(),
45   |     --------- similarly named tuple variant `XEmpty5` defined here
46
47error: aborting due to 4 previous errors
48
49For more information about this error, try `rustc --explain E0532`.