]> git.lizzy.rs Git - rust.git/blob - src/test/ui/empty/empty-struct-braces-pat-3.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / empty / empty-struct-braces-pat-3.stderr
1 error[E0532]: expected tuple struct or tuple variant, found struct variant `E::Empty3`
2   --> $DIR/empty-struct-braces-pat-3.rs:17:9
3    |
4 LL |     Empty3 {}
5    |     --------- `E::Empty3` defined here
6 ...
7 LL |         E::Empty3() => ()
8    |         ^^^^^^^^^^^ help: use struct pattern syntax instead: `E::Empty3 {}`
9
10 error[E0532]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
11   --> $DIR/empty-struct-braces-pat-3.rs:21:9
12    |
13 LL |         XE::XEmpty3() => ()
14    |         ^^^^^^^^^^^^^
15    |
16   ::: $DIR/auxiliary/empty-struct.rs:6:5
17    |
18 LL |     XEmpty3 {},
19    |     ------- `XE::XEmpty3` defined here
20 LL |     XEmpty4,
21 LL |     XEmpty5(),
22    |     --------- similarly named tuple variant `XEmpty5` defined here
23    |
24 help: use struct pattern syntax instead
25    |
26 LL |         XE::XEmpty3 { /* fields */ } => ()
27    |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28 help: a tuple variant with a similar name exists
29    |
30 LL |         XE::XEmpty5() => ()
31    |             ~~~~~~~
32
33 error[E0532]: expected tuple struct or tuple variant, found struct variant `E::Empty3`
34   --> $DIR/empty-struct-braces-pat-3.rs:25:9
35    |
36 LL |     Empty3 {}
37    |     --------- `E::Empty3` defined here
38 ...
39 LL |         E::Empty3(..) => ()
40    |         ^^^^^^^^^^^^^ help: use struct pattern syntax instead: `E::Empty3 {}`
41
42 error[E0532]: expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
43   --> $DIR/empty-struct-braces-pat-3.rs:29:9
44    |
45 LL |         XE::XEmpty3(..) => ()
46    |         ^^^^^^^^^^^^^^^
47    |
48   ::: $DIR/auxiliary/empty-struct.rs:6:5
49    |
50 LL |     XEmpty3 {},
51    |     ------- `XE::XEmpty3` defined here
52 LL |     XEmpty4,
53 LL |     XEmpty5(),
54    |     --------- similarly named tuple variant `XEmpty5` defined here
55    |
56 help: use struct pattern syntax instead
57    |
58 LL |         XE::XEmpty3 { /* fields */ } => ()
59    |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60 help: a tuple variant with a similar name exists
61    |
62 LL |         XE::XEmpty5(..) => ()
63    |             ~~~~~~~
64
65 error: aborting due to 4 previous errors
66
67 For more information about this error, try `rustc --explain E0532`.