1 error[E0004]: non-exhaustive patterns: `Foo { first: false, second: Some([_, _, _, _]) }` not covered
2 --> $DIR/non-exhaustive-pattern-witness.rs:7:11
6 LL | | second: Option<[usize; 4]>
8 | |_- `Foo` defined here
10 LL | match (Foo { first: true, second: None }) {
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo { first: false, second: Some([_, _, _, _]) }` not covered
13 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
15 error[E0004]: non-exhaustive patterns: `Red` not covered
16 --> $DIR/non-exhaustive-pattern-witness.rs:23:11
22 LL | | CustomRGBA { a: bool, r: u8, g: u8, b: u8 }
24 | |_- `Color` defined here
26 LL | match Color::Red {
27 | ^^^^^^^^^^ pattern `Red` not covered
29 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
31 error[E0004]: non-exhaustive patterns: `East`, `South` and `West` not covered
32 --> $DIR/non-exhaustive-pattern-witness.rs:35:11
34 LL | / enum Direction {
35 LL | | North, East, South, West
36 | | ---- ----- ---- not covered
41 | |_- `Direction` defined here
43 LL | match Direction::North {
44 | ^^^^^^^^^^^^^^^^ patterns `East`, `South` and `West` not covered
46 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
48 error[E0004]: non-exhaustive patterns: `Second`, `Third`, `Fourth` and 8 more not covered
49 --> $DIR/non-exhaustive-pattern-witness.rs:46:11
51 LL | / enum ExcessiveEnum {
52 LL | | First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth, Eleventh, Twelfth
54 | |_- `ExcessiveEnum` defined here
56 LL | match ExcessiveEnum::First {
57 | ^^^^^^^^^^^^^^^^^^^^ patterns `Second`, `Third`, `Fourth` and 8 more not covered
59 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
61 error[E0004]: non-exhaustive patterns: `CustomRGBA { a: true, .. }` not covered
62 --> $DIR/non-exhaustive-pattern-witness.rs:54:11
67 LL | | CustomRGBA { a: bool, r: u8, g: u8, b: u8 }
68 | | ---------- not covered
70 | |_- `Color` defined here
72 LL | match Color::Red {
73 | ^^^^^^^^^^ pattern `CustomRGBA { a: true, .. }` not covered
75 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
77 error[E0004]: non-exhaustive patterns: `[Second(true), Second(false)]` not covered
78 --> $DIR/non-exhaustive-pattern-witness.rs:70:11
81 | ^^ pattern `[Second(true), Second(false)]` not covered
83 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
85 error[E0004]: non-exhaustive patterns: `((), false)` not covered
86 --> $DIR/non-exhaustive-pattern-witness.rs:83:11
88 LL | match ((), false) {
89 | ^^^^^^^^^^^ pattern `((), false)` not covered
91 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
93 error: aborting due to 7 previous errors
95 For more information about this error, try `rustc --explain E0004`.