fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
3.8 KiB102 linesraw
1error[E0004]: non-exhaustive patterns: `Foo { first: false, second: Some([_, _, _, _]) }` not covered
2  --> $DIR/non-exhaustive-pattern-witness.rs:7:11
3   |
4LL | / struct Foo {
5LL | |     first: bool,
6LL | |     second: Option<[usize; 4]>
7LL | | }
8   | |_- `Foo` defined here
9...
10LL |       match (Foo { first: true, second: None }) {
11   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo { first: false, second: Some([_, _, _, _]) }` not covered
12   |
13   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
14   = note: the matched value is of type `Foo`
15
16error[E0004]: non-exhaustive patterns: `Red` not covered
17  --> $DIR/non-exhaustive-pattern-witness.rs:23:11
18   |
19LL | / enum Color {
20LL | |     Red,
21   | |     --- not covered
22LL | |     Green,
23LL | |     CustomRGBA { a: bool, r: u8, g: u8, b: u8 }
24LL | | }
25   | |_- `Color` defined here
26...
27LL |       match Color::Red {
28   |             ^^^^^^^^^^ pattern `Red` not covered
29   |
30   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
31   = note: the matched value is of type `Color`
32
33error[E0004]: non-exhaustive patterns: `East`, `South` and `West` not covered
34  --> $DIR/non-exhaustive-pattern-witness.rs:35:11
35   |
36LL | / enum Direction {
37LL | |     North, East, South, West
38   | |            ----  -----  ---- not covered
39   | |            |     |
40   | |            |     not covered
41   | |            not covered
42LL | | }
43   | |_- `Direction` defined here
44...
45LL |       match Direction::North {
46   |             ^^^^^^^^^^^^^^^^ patterns `East`, `South` and `West` not covered
47   |
48   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
49   = note: the matched value is of type `Direction`
50
51error[E0004]: non-exhaustive patterns: `Second`, `Third`, `Fourth` and 8 more not covered
52  --> $DIR/non-exhaustive-pattern-witness.rs:46:11
53   |
54LL | / enum ExcessiveEnum {
55LL | |     First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth, Tenth, Eleventh, Twelfth
56LL | | }
57   | |_- `ExcessiveEnum` defined here
58...
59LL |       match ExcessiveEnum::First {
60   |             ^^^^^^^^^^^^^^^^^^^^ patterns `Second`, `Third`, `Fourth` and 8 more not covered
61   |
62   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
63   = note: the matched value is of type `ExcessiveEnum`
64
65error[E0004]: non-exhaustive patterns: `CustomRGBA { a: true, .. }` not covered
66  --> $DIR/non-exhaustive-pattern-witness.rs:54:11
67   |
68LL | / enum Color {
69LL | |     Red,
70LL | |     Green,
71LL | |     CustomRGBA { a: bool, r: u8, g: u8, b: u8 }
72   | |     ---------- not covered
73LL | | }
74   | |_- `Color` defined here
75...
76LL |       match Color::Red {
77   |             ^^^^^^^^^^ pattern `CustomRGBA { a: true, .. }` not covered
78   |
79   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
80   = note: the matched value is of type `Color`
81
82error[E0004]: non-exhaustive patterns: `[Second(true), Second(false)]` not covered
83  --> $DIR/non-exhaustive-pattern-witness.rs:70:11
84   |
85LL |     match *x {
86   |           ^^ pattern `[Second(true), Second(false)]` not covered
87   |
88   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
89   = note: the matched value is of type `[Enum]`
90
91error[E0004]: non-exhaustive patterns: `((), false)` not covered
92  --> $DIR/non-exhaustive-pattern-witness.rs:83:11
93   |
94LL |     match ((), false) {
95   |           ^^^^^^^^^^^ pattern `((), false)` not covered
96   |
97   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
98   = note: the matched value is of type `((), bool)`
99
100error: aborting due to 7 previous errors
101
102For more information about this error, try `rustc --explain E0004`.