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 = note: the matched value is of type `Foo`
14 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
16 error[E0004]: non-exhaustive patterns: `Red` not covered
17 --> $DIR/non-exhaustive-pattern-witness.rs:23:11
23 LL | | CustomRGBA { a: bool, r: u8, g: u8, b: u8 }
25 | |_- `Color` defined here
27 LL | match Color::Red {
28 | ^^^^^^^^^^ pattern `Red` not covered
30 = note: the matched value is of type `Color`
31 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
33 error[E0004]: non-exhaustive patterns: `East`, `South` and `West` not covered
34 --> $DIR/non-exhaustive-pattern-witness.rs:35:11
36 LL | / enum Direction {
37 LL | | North, East, South, West
38 | | ---- ----- ---- not covered
43 | |_- `Direction` defined here
45 LL | match Direction::North {
46 | ^^^^^^^^^^^^^^^^ patterns `East`, `South` and `West` not covered
48 = note: the matched value is of type `Direction`
49 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
51 error[E0004]: non-exhaustive patterns: `Second`, `Third`, `Fourth` and 8 more not covered
52 --> $DIR/non-exhaustive-pattern-witness.rs:46:11
54 LL | / enum ExcessiveEnum {
55 LL | | First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth, Eleventh, Twelfth
57 | |_- `ExcessiveEnum` defined here
59 LL | match ExcessiveEnum::First {
60 | ^^^^^^^^^^^^^^^^^^^^ patterns `Second`, `Third`, `Fourth` and 8 more not covered
62 = note: the matched value is of type `ExcessiveEnum`
63 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
65 error[E0004]: non-exhaustive patterns: `CustomRGBA { a: true, .. }` not covered
66 --> $DIR/non-exhaustive-pattern-witness.rs:54:11
71 LL | | CustomRGBA { a: bool, r: u8, g: u8, b: u8 }
72 | | ---------- not covered
74 | |_- `Color` defined here
76 LL | match Color::Red {
77 | ^^^^^^^^^^ pattern `CustomRGBA { a: true, .. }` not covered
79 = note: the matched value is of type `Color`
80 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
82 error[E0004]: non-exhaustive patterns: `[Second(true), Second(false)]` not covered
83 --> $DIR/non-exhaustive-pattern-witness.rs:70:11
86 | ^^ pattern `[Second(true), Second(false)]` not covered
88 = note: the matched value is of type `[Enum]`
89 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
91 error[E0004]: non-exhaustive patterns: `((), false)` not covered
92 --> $DIR/non-exhaustive-pattern-witness.rs:83:11
94 LL | match ((), false) {
95 | ^^^^^^^^^^^ pattern `((), false)` not covered
97 = note: the matched value is of type `((), bool)`
98 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
100 error: aborting due to 7 previous errors
102 For more information about this error, try `rustc --explain E0004`.