1 error: unreachable pattern
2 --> $DIR/match-empty-exhaustive_patterns.rs:52:9
7 note: the lint level is defined here
8 --> $DIR/match-empty-exhaustive_patterns.rs:5:9
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: unreachable pattern
14 --> $DIR/match-empty-exhaustive_patterns.rs:55:9
16 LL | _ if false => {},
19 error: unreachable pattern
20 --> $DIR/match-empty-exhaustive_patterns.rs:62:9
25 error: unreachable pattern
26 --> $DIR/match-empty-exhaustive_patterns.rs:65:9
28 LL | _ if false => {},
31 error: unreachable pattern
32 --> $DIR/match-empty-exhaustive_patterns.rs:72:9
37 error: unreachable pattern
38 --> $DIR/match-empty-exhaustive_patterns.rs:75:9
40 LL | _ if false => {},
43 error: unreachable pattern
44 --> $DIR/match-empty-exhaustive_patterns.rs:82:9
49 error: unreachable pattern
50 --> $DIR/match-empty-exhaustive_patterns.rs:86:9
55 error[E0004]: non-exhaustive patterns: type `u8` is non-empty
56 --> $DIR/match-empty-exhaustive_patterns.rs:89:18
58 LL | match_empty!(0u8);
61 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
62 = note: the matched value is of type `u8`
64 error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty
65 --> $DIR/match-empty-exhaustive_patterns.rs:91:18
67 LL | struct NonEmptyStruct(bool);
68 | ---------------------------- `NonEmptyStruct` defined here
70 LL | match_empty!(NonEmptyStruct(true));
71 | ^^^^^^^^^^^^^^^^^^^^
73 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
74 = note: the matched value is of type `NonEmptyStruct`
76 error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
77 --> $DIR/match-empty-exhaustive_patterns.rs:93:18
79 LL | / union NonEmptyUnion1 {
82 | |_- `NonEmptyUnion1` defined here
84 LL | match_empty!((NonEmptyUnion1 { foo: () }));
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
88 = note: the matched value is of type `NonEmptyUnion1`
90 error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
91 --> $DIR/match-empty-exhaustive_patterns.rs:95:18
93 LL | / union NonEmptyUnion2 {
97 | |_- `NonEmptyUnion2` defined here
99 LL | match_empty!((NonEmptyUnion2 { foo: () }));
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
103 = note: the matched value is of type `NonEmptyUnion2`
105 error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
106 --> $DIR/match-empty-exhaustive_patterns.rs:97:18
108 LL | / enum NonEmptyEnum1 {
114 | |_- `NonEmptyEnum1` defined here
116 LL | match_empty!(NonEmptyEnum1::Foo(true));
117 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered
119 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
120 = note: the matched value is of type `NonEmptyEnum1`
122 error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
123 --> $DIR/match-empty-exhaustive_patterns.rs:99:18
125 LL | / enum NonEmptyEnum2 {
135 | |_- `NonEmptyEnum2` defined here
137 LL | match_empty!(NonEmptyEnum2::Foo(true));
138 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered
140 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
141 = note: the matched value is of type `NonEmptyEnum2`
143 error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
144 --> $DIR/match-empty-exhaustive_patterns.rs:101:18
146 LL | / enum NonEmptyEnum5 {
147 LL | | V1, V2, V3, V4, V5,
149 | |_- `NonEmptyEnum5` defined here
151 LL | match_empty!(NonEmptyEnum5::V1);
152 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered
154 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
155 = note: the matched value is of type `NonEmptyEnum5`
157 error[E0004]: non-exhaustive patterns: `_` not covered
158 --> $DIR/match-empty-exhaustive_patterns.rs:104:18
160 LL | match_false!(0u8);
161 | ^^^ pattern `_` not covered
163 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
164 = note: the matched value is of type `u8`
166 error[E0004]: non-exhaustive patterns: `NonEmptyStruct(_)` not covered
167 --> $DIR/match-empty-exhaustive_patterns.rs:106:18
169 LL | struct NonEmptyStruct(bool);
170 | ---------------------------- `NonEmptyStruct` defined here
172 LL | match_false!(NonEmptyStruct(true));
173 | ^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct(_)` not covered
175 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
176 = note: the matched value is of type `NonEmptyStruct`
178 error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
179 --> $DIR/match-empty-exhaustive_patterns.rs:108:18
181 LL | / union NonEmptyUnion1 {
184 | |_- `NonEmptyUnion1` defined here
186 LL | match_false!((NonEmptyUnion1 { foo: () }));
187 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered
189 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
190 = note: the matched value is of type `NonEmptyUnion1`
192 error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
193 --> $DIR/match-empty-exhaustive_patterns.rs:110:18
195 LL | / union NonEmptyUnion2 {
199 | |_- `NonEmptyUnion2` defined here
201 LL | match_false!((NonEmptyUnion2 { foo: () }));
202 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered
204 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
205 = note: the matched value is of type `NonEmptyUnion2`
207 error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
208 --> $DIR/match-empty-exhaustive_patterns.rs:112:18
210 LL | / enum NonEmptyEnum1 {
216 | |_- `NonEmptyEnum1` defined here
218 LL | match_false!(NonEmptyEnum1::Foo(true));
219 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered
221 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
222 = note: the matched value is of type `NonEmptyEnum1`
224 error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
225 --> $DIR/match-empty-exhaustive_patterns.rs:114:18
227 LL | / enum NonEmptyEnum2 {
237 | |_- `NonEmptyEnum2` defined here
239 LL | match_false!(NonEmptyEnum2::Foo(true));
240 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered
242 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
243 = note: the matched value is of type `NonEmptyEnum2`
245 error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
246 --> $DIR/match-empty-exhaustive_patterns.rs:116:18
248 LL | / enum NonEmptyEnum5 {
249 LL | | V1, V2, V3, V4, V5,
251 | |_- `NonEmptyEnum5` defined here
253 LL | match_false!(NonEmptyEnum5::V1);
254 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered
256 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
257 = note: the matched value is of type `NonEmptyEnum5`
259 error: aborting due to 22 previous errors
261 For more information about this error, try `rustc --explain E0004`.