fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.4 KiB39 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
19error[E0532]: expected tuple struct or tuple variant, found struct variant `E::Empty3`
20  --> $DIR/empty-struct-braces-pat-3.rs:25:9
21   |
22LL |     Empty3 {}
23   |     --------- `E::Empty3` defined here
24...
25LL |         E::Empty3(..) => ()
26   |         ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
27
28error[E0532]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
29  --> $DIR/empty-struct-braces-pat-3.rs:29:9
30   |
31LL |         XE::XEmpty3(..) => ()
32   |         ^^^^-------
33   |         |   |
34   |         |   help: a tuple variant with a similar name exists: `XEmpty5`
35   |         did you mean `XE::XEmpty3 { /* fields */ }`?
36
37error: aborting due to 4 previous errors
38
39For more information about this error, try `rustc --explain E0532`.