1 error: unreachable pattern
2 --> $DIR/empty-match.rs:37:9
7 note: the lint level is defined here
8 --> $DIR/empty-match.rs:8:9
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: unreachable pattern
14 --> $DIR/empty-match.rs:40:9
16 LL | _ if false => {},
19 error: unreachable pattern
20 --> $DIR/empty-match.rs:47:9
25 error: unreachable pattern
26 --> $DIR/empty-match.rs:50:9
28 LL | _ if false => {},
31 error: unreachable pattern
32 --> $DIR/empty-match.rs:57:9
37 error: unreachable pattern
38 --> $DIR/empty-match.rs:60:9
40 LL | _ if false => {},
43 error[E0004]: non-exhaustive patterns: type `u8` is non-empty
44 --> $DIR/empty-match.rs:78:20
46 LL | match_no_arms!(0u8);
49 = note: the matched value is of type `u8`
50 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
52 error[E0004]: non-exhaustive patterns: type `NonEmptyStruct1` is non-empty
53 --> $DIR/empty-match.rs:79:20
55 LL | struct NonEmptyStruct1;
56 | ----------------------- `NonEmptyStruct1` defined here
58 LL | match_no_arms!(NonEmptyStruct1);
61 = note: the matched value is of type `NonEmptyStruct1`
62 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
64 error[E0004]: non-exhaustive patterns: type `NonEmptyStruct2` is non-empty
65 --> $DIR/empty-match.rs:80:20
67 LL | struct NonEmptyStruct2(bool);
68 | ----------------------------- `NonEmptyStruct2` defined here
70 LL | match_no_arms!(NonEmptyStruct2(true));
71 | ^^^^^^^^^^^^^^^^^^^^^
73 = note: the matched value is of type `NonEmptyStruct2`
74 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
76 error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
77 --> $DIR/empty-match.rs:81:20
79 LL | / union NonEmptyUnion1 {
82 | |_- `NonEmptyUnion1` defined here
84 LL | match_no_arms!((NonEmptyUnion1 { foo: () }));
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 = note: the matched value is of type `NonEmptyUnion1`
88 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
90 error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
91 --> $DIR/empty-match.rs:82:20
93 LL | / union NonEmptyUnion2 {
97 | |_- `NonEmptyUnion2` defined here
99 LL | match_no_arms!((NonEmptyUnion2 { foo: () }));
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 = note: the matched value is of type `NonEmptyUnion2`
103 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
105 error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
106 --> $DIR/empty-match.rs:83:20
108 LL | / enum NonEmptyEnum1 {
112 | |_- `NonEmptyEnum1` defined here
114 LL | match_no_arms!(NonEmptyEnum1::Foo(true));
115 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered
117 = note: the matched value is of type `NonEmptyEnum1`
118 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
120 error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
121 --> $DIR/empty-match.rs:84:20
123 LL | / enum NonEmptyEnum2 {
129 | |_- `NonEmptyEnum2` defined here
131 LL | match_no_arms!(NonEmptyEnum2::Foo(true));
132 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered
134 = note: the matched value is of type `NonEmptyEnum2`
135 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
137 error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
138 --> $DIR/empty-match.rs:85:20
140 LL | / enum NonEmptyEnum5 {
141 LL | | V1, V2, V3, V4, V5,
143 | |_- `NonEmptyEnum5` defined here
145 LL | match_no_arms!(NonEmptyEnum5::V1);
146 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered
148 = note: the matched value is of type `NonEmptyEnum5`
149 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
151 error[E0004]: non-exhaustive patterns: `_` not covered
152 --> $DIR/empty-match.rs:87:24
154 LL | match_guarded_arm!(0u8);
155 | ^^^ pattern `_` not covered
157 = note: the matched value is of type `u8`
158 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
160 LL ~ _ if false => {}
164 error[E0004]: non-exhaustive patterns: `NonEmptyStruct1` not covered
165 --> $DIR/empty-match.rs:88:24
167 LL | struct NonEmptyStruct1;
168 | ----------------------- `NonEmptyStruct1` defined here
170 LL | match_guarded_arm!(NonEmptyStruct1);
171 | ^^^^^^^^^^^^^^^ pattern `NonEmptyStruct1` not covered
173 = note: the matched value is of type `NonEmptyStruct1`
174 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
176 LL ~ _ if false => {}
177 LL + NonEmptyStruct1 => todo!()
180 error[E0004]: non-exhaustive patterns: `NonEmptyStruct2(_)` not covered
181 --> $DIR/empty-match.rs:89:24
183 LL | struct NonEmptyStruct2(bool);
184 | ----------------------------- `NonEmptyStruct2` defined here
186 LL | match_guarded_arm!(NonEmptyStruct2(true));
187 | ^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct2(_)` not covered
189 = note: the matched value is of type `NonEmptyStruct2`
190 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
192 LL ~ _ if false => {}
193 LL + NonEmptyStruct2(_) => todo!()
196 error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
197 --> $DIR/empty-match.rs:90:24
199 LL | / union NonEmptyUnion1 {
202 | |_- `NonEmptyUnion1` defined here
204 LL | match_guarded_arm!((NonEmptyUnion1 { foo: () }));
205 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered
207 = note: the matched value is of type `NonEmptyUnion1`
208 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
210 LL ~ _ if false => {}
211 LL + NonEmptyUnion1 { .. } => todo!()
214 error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
215 --> $DIR/empty-match.rs:91:24
217 LL | / union NonEmptyUnion2 {
221 | |_- `NonEmptyUnion2` defined here
223 LL | match_guarded_arm!((NonEmptyUnion2 { foo: () }));
224 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered
226 = note: the matched value is of type `NonEmptyUnion2`
227 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
229 LL ~ _ if false => {}
230 LL + NonEmptyUnion2 { .. } => todo!()
233 error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
234 --> $DIR/empty-match.rs:92:24
236 LL | / enum NonEmptyEnum1 {
240 | |_- `NonEmptyEnum1` defined here
242 LL | match_guarded_arm!(NonEmptyEnum1::Foo(true));
243 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered
245 = note: the matched value is of type `NonEmptyEnum1`
246 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
248 LL ~ _ if false => {}
249 LL + Foo(_) => todo!()
252 error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
253 --> $DIR/empty-match.rs:93:24
255 LL | / enum NonEmptyEnum2 {
261 | |_- `NonEmptyEnum2` defined here
263 LL | match_guarded_arm!(NonEmptyEnum2::Foo(true));
264 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered
266 = note: the matched value is of type `NonEmptyEnum2`
267 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
269 LL ~ _ if false => {}
270 LL + Foo(_) | Bar => todo!()
273 error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
274 --> $DIR/empty-match.rs:94:24
276 LL | / enum NonEmptyEnum5 {
277 LL | | V1, V2, V3, V4, V5,
279 | |_- `NonEmptyEnum5` defined here
281 LL | match_guarded_arm!(NonEmptyEnum5::V1);
282 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered
284 = note: the matched value is of type `NonEmptyEnum5`
285 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
287 LL ~ _ if false => {}
291 error: aborting due to 22 previous errors
293 For more information about this error, try `rustc --explain E0004`.