]> git.lizzy.rs Git - rust.git/blob - src/test/ui/empty/empty-struct-braces-pat-2.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / empty / empty-struct-braces-pat-2.stderr
1 error[E0532]: expected tuple struct or tuple variant, found struct `Empty1`
2   --> $DIR/empty-struct-braces-pat-2.rs:15:9
3    |
4 LL | struct Empty1 {}
5    | ---------------- `Empty1` defined here
6 ...
7 LL |         Empty1() => ()
8    |         ^^^^^^^^
9    |
10   ::: $DIR/auxiliary/empty-struct.rs:3:1
11    |
12 LL | pub struct XEmpty6();
13    | --------------------- similarly named tuple struct `XEmpty6` defined here
14    |
15 help: use struct pattern syntax instead
16    |
17 LL |         Empty1 {} => ()
18    |         ~~~~~~~~~
19 help: a tuple struct with a similar name exists
20    |
21 LL |         XEmpty6() => ()
22    |         ~~~~~~~
23
24 error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1`
25   --> $DIR/empty-struct-braces-pat-2.rs:18:9
26    |
27 LL |         XEmpty1() => ()
28    |         ^^^^^^^^^
29    |
30   ::: $DIR/auxiliary/empty-struct.rs:1:1
31    |
32 LL | pub struct XEmpty1 {}
33    | ------------------ `XEmpty1` defined here
34 LL | pub struct XEmpty2;
35 LL | pub struct XEmpty6();
36    | --------------------- similarly named tuple struct `XEmpty6` defined here
37    |
38 help: use struct pattern syntax instead
39    |
40 LL |         XEmpty1 {} => ()
41    |         ~~~~~~~~~~
42 help: a tuple struct with a similar name exists
43    |
44 LL |         XEmpty6() => ()
45    |         ~~~~~~~
46
47 error[E0532]: expected tuple struct or tuple variant, found struct `Empty1`
48   --> $DIR/empty-struct-braces-pat-2.rs:21:9
49    |
50 LL | struct Empty1 {}
51    | ---------------- `Empty1` defined here
52 ...
53 LL |         Empty1(..) => ()
54    |         ^^^^^^^^^^
55    |
56   ::: $DIR/auxiliary/empty-struct.rs:3:1
57    |
58 LL | pub struct XEmpty6();
59    | --------------------- similarly named tuple struct `XEmpty6` defined here
60    |
61 help: use struct pattern syntax instead
62    |
63 LL |         Empty1 {} => ()
64    |         ~~~~~~~~~
65 help: a tuple struct with a similar name exists
66    |
67 LL |         XEmpty6(..) => ()
68    |         ~~~~~~~
69
70 error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1`
71   --> $DIR/empty-struct-braces-pat-2.rs:24:9
72    |
73 LL |         XEmpty1(..) => ()
74    |         ^^^^^^^^^^^
75    |
76   ::: $DIR/auxiliary/empty-struct.rs:1:1
77    |
78 LL | pub struct XEmpty1 {}
79    | ------------------ `XEmpty1` defined here
80 LL | pub struct XEmpty2;
81 LL | pub struct XEmpty6();
82    | --------------------- similarly named tuple struct `XEmpty6` defined here
83    |
84 help: use struct pattern syntax instead
85    |
86 LL |         XEmpty1 {} => ()
87    |         ~~~~~~~~~~
88 help: a tuple struct with a similar name exists
89    |
90 LL |         XEmpty6(..) => ()
91    |         ~~~~~~~
92
93 error: aborting due to 4 previous errors
94
95 For more information about this error, try `rustc --explain E0532`.