]> git.proxmox.com Git - rustc.git/blob - src/test/ui/empty/empty-struct-unit-pat.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / empty / empty-struct-unit-pat.stderr
1 error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
2 --> $DIR/empty-struct-unit-pat.rs:21:9
3 |
4 LL | struct Empty2;
5 | -------------- `Empty2` defined here
6 ...
7 LL | Empty2() => ()
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 this syntax instead
16 |
17 LL | Empty2 => ()
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 unit struct `XEmpty2`
25 --> $DIR/empty-struct-unit-pat.rs:24:9
26 |
27 LL | XEmpty2() => ()
28 | ^^^^^^^^^
29 |
30 ::: $DIR/auxiliary/empty-struct.rs:2:1
31 |
32 LL | pub struct XEmpty2;
33 | ------------------- `XEmpty2` defined here
34 LL | pub struct XEmpty6();
35 | --------------------- similarly named tuple struct `XEmpty6` defined here
36 |
37 help: use this syntax instead
38 |
39 LL | XEmpty2 => ()
40 | ~~~~~~~
41 help: a tuple struct with a similar name exists
42 |
43 LL | XEmpty6() => ()
44 | ~~~~~~~
45
46 error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
47 --> $DIR/empty-struct-unit-pat.rs:28:9
48 |
49 LL | struct Empty2;
50 | -------------- `Empty2` defined here
51 ...
52 LL | Empty2(..) => ()
53 | ^^^^^^^^^^
54 |
55 ::: $DIR/auxiliary/empty-struct.rs:3:1
56 |
57 LL | pub struct XEmpty6();
58 | --------------------- similarly named tuple struct `XEmpty6` defined here
59 |
60 help: use this syntax instead
61 |
62 LL | Empty2 => ()
63 | ~~~~~~
64 help: a tuple struct with a similar name exists
65 |
66 LL | XEmpty6(..) => ()
67 | ~~~~~~~
68
69 error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
70 --> $DIR/empty-struct-unit-pat.rs:32:9
71 |
72 LL | XEmpty2(..) => ()
73 | ^^^^^^^^^^^
74 |
75 ::: $DIR/auxiliary/empty-struct.rs:2:1
76 |
77 LL | pub struct XEmpty2;
78 | ------------------- `XEmpty2` defined here
79 LL | pub struct XEmpty6();
80 | --------------------- similarly named tuple struct `XEmpty6` defined here
81 |
82 help: use this syntax instead
83 |
84 LL | XEmpty2 => ()
85 | ~~~~~~~
86 help: a tuple struct with a similar name exists
87 |
88 LL | XEmpty6(..) => ()
89 | ~~~~~~~
90
91 error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
92 --> $DIR/empty-struct-unit-pat.rs:37:9
93 |
94 LL | Empty4
95 | ------ `E::Empty4` defined here
96 ...
97 LL | E::Empty4() => ()
98 | ^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`
99
100 error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
101 --> $DIR/empty-struct-unit-pat.rs:41:9
102 |
103 LL | XE::XEmpty4() => (),
104 | ^^^^^^^^^^^^^
105 |
106 ::: $DIR/auxiliary/empty-struct.rs:7:5
107 |
108 LL | XEmpty4,
109 | ------- `XE::XEmpty4` defined here
110 LL | XEmpty5(),
111 | --------- similarly named tuple variant `XEmpty5` defined here
112 |
113 help: use this syntax instead
114 |
115 LL | XE::XEmpty4 => (),
116 | ~~~~~~~~~~~
117 help: a tuple variant with a similar name exists
118 |
119 LL | XE::XEmpty5() => (),
120 | ~~~~~~~
121
122 error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
123 --> $DIR/empty-struct-unit-pat.rs:46:9
124 |
125 LL | Empty4
126 | ------ `E::Empty4` defined here
127 ...
128 LL | E::Empty4(..) => ()
129 | ^^^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`
130
131 error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
132 --> $DIR/empty-struct-unit-pat.rs:50:9
133 |
134 LL | XE::XEmpty4(..) => (),
135 | ^^^^^^^^^^^^^^^
136 |
137 ::: $DIR/auxiliary/empty-struct.rs:7:5
138 |
139 LL | XEmpty4,
140 | ------- `XE::XEmpty4` defined here
141 LL | XEmpty5(),
142 | --------- similarly named tuple variant `XEmpty5` defined here
143 |
144 help: use this syntax instead
145 |
146 LL | XE::XEmpty4 => (),
147 | ~~~~~~~~~~~
148 help: a tuple variant with a similar name exists
149 |
150 LL | XE::XEmpty5(..) => (),
151 | ~~~~~~~
152
153 error: aborting due to 8 previous errors
154
155 For more information about this error, try `rustc --explain E0532`.