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

error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
  --> $DIR/empty-struct-unit-pat.rs:24:9
   |
LL |         XEmpty2() => ()
   |         ^^^^^^^^^
   |
  ::: $DIR/auxiliary/empty-struct.rs:2:1
   |
LL | pub struct XEmpty2;
   | ------------------ `XEmpty2` defined here
LL | pub struct XEmpty6();
   | ------------------ similarly named tuple struct `XEmpty6` defined here
   |
help: use this syntax instead
   |
LL |         XEmpty2 => ()
   |         ~~~~~~~
help: a tuple struct with a similar name exists
   |
LL |         XEmpty6() => ()
   |         ~~~~~~~

error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2`
  --> $DIR/empty-struct-unit-pat.rs:28:9
   |
LL | struct Empty2;
   | -------------- `Empty2` defined here
...
LL |         Empty2(..) => ()
   |         ^^^^^^^^^^
   |
  ::: $DIR/auxiliary/empty-struct.rs:3:1
   |
LL | pub struct XEmpty6();
   | ------------------ similarly named tuple struct `XEmpty6` defined here
   |
help: use this syntax instead
   |
LL |         Empty2 => ()
   |         ~~~~~~
help: a tuple struct with a similar name exists
   |
LL |         XEmpty6(..) => ()
   |         ~~~~~~~

error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2`
  --> $DIR/empty-struct-unit-pat.rs:32:9
   |
LL |         XEmpty2(..) => ()
   |         ^^^^^^^^^^^
   |
  ::: $DIR/auxiliary/empty-struct.rs:2:1
   |
LL | pub struct XEmpty2;
   | ------------------ `XEmpty2` defined here
LL | pub struct XEmpty6();
   | ------------------ similarly named tuple struct `XEmpty6` defined here
   |
help: use this syntax instead
   |
LL |         XEmpty2 => ()
   |         ~~~~~~~
help: a tuple struct with a similar name exists
   |
LL |         XEmpty6(..) => ()
   |         ~~~~~~~

error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
  --> $DIR/empty-struct-unit-pat.rs:37:9
   |
LL |     Empty4
   |     ------ `E::Empty4` defined here
...
LL |         E::Empty4() => ()
   |         ^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`

error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
  --> $DIR/empty-struct-unit-pat.rs:41:9
   |
LL |         XE::XEmpty4() => (),
   |         ^^^^^^^^^^^^^
   |
  ::: $DIR/auxiliary/empty-struct.rs:7:5
   |
LL |     XEmpty4,
   |     ------- `XE::XEmpty4` defined here
LL |     XEmpty5(),
   |     ------- similarly named tuple variant `XEmpty5` defined here
   |
help: use this syntax instead
   |
LL |         XE::XEmpty4 => (),
   |         ~~~~~~~~~~~
help: a tuple variant with a similar name exists
   |
LL |         XE::XEmpty5() => (),
   |             ~~~~~~~

error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4`
  --> $DIR/empty-struct-unit-pat.rs:46:9
   |
LL |     Empty4
   |     ------ `E::Empty4` defined here
...
LL |         E::Empty4(..) => ()
   |         ^^^^^^^^^^^^^ help: use this syntax instead: `E::Empty4`

error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4`
  --> $DIR/empty-struct-unit-pat.rs:50:9
   |
LL |         XE::XEmpty4(..) => (),
   |         ^^^^^^^^^^^^^^^
   |
  ::: $DIR/auxiliary/empty-struct.rs:7:5
   |
LL |     XEmpty4,
   |     ------- `XE::XEmpty4` defined here
LL |     XEmpty5(),
   |     ------- similarly named tuple variant `XEmpty5` defined here
   |
help: use this syntax instead
   |
LL |         XE::XEmpty4 => (),
   |         ~~~~~~~~~~~
help: a tuple variant with a similar name exists
   |
LL |         XE::XEmpty5(..) => (),
   |             ~~~~~~~

error: aborting due to 8 previous errors

For more information about this error, try `rustc --explain E0532`.