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.7 KiB81 linesraw
1error[E0004]: non-exhaustive patterns: `(B, _)`, `(C, _)`, `(D, _)` and 2 more not covered
2  --> $DIR/issue-35609.rs:10:11
3   |
4LL |     match (A, ()) {
5   |           ^^^^^^^ patterns `(B, _)`, `(C, _)`, `(D, _)` and 2 more not covered
6   |
7   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8   = note: the matched value is of type `(Enum, ())`
9
10error[E0004]: non-exhaustive patterns: `(_, B)`, `(_, C)`, `(_, D)` and 2 more not covered
11  --> $DIR/issue-35609.rs:14:11
12   |
13LL |     match (A, A) {
14   |           ^^^^^^ patterns `(_, B)`, `(_, C)`, `(_, D)` and 2 more not covered
15   |
16   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
17   = note: the matched value is of type `(Enum, Enum)`
18
19error[E0004]: non-exhaustive patterns: `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
20  --> $DIR/issue-35609.rs:18:11
21   |
22LL |     match ((A, ()), ()) {
23   |           ^^^^^^^^^^^^^ patterns `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
24   |
25   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
26   = note: the matched value is of type `((Enum, ()), ())`
27
28error[E0004]: non-exhaustive patterns: `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
29  --> $DIR/issue-35609.rs:22:11
30   |
31LL |     match ((A, ()), A) {
32   |           ^^^^^^^^^^^^ patterns `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
33   |
34   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
35   = note: the matched value is of type `((Enum, ()), Enum)`
36
37error[E0004]: non-exhaustive patterns: `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
38  --> $DIR/issue-35609.rs:26:11
39   |
40LL |     match ((A, ()), ()) {
41   |           ^^^^^^^^^^^^^ patterns `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
42   |
43   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
44   = note: the matched value is of type `((Enum, ()), ())`
45
46error[E0004]: non-exhaustive patterns: `S(B, _)`, `S(C, _)`, `S(D, _)` and 2 more not covered
47  --> $DIR/issue-35609.rs:31:11
48   |
49LL | struct S(Enum, ());
50   | ------------------- `S` defined here
51...
52LL |     match S(A, ()) {
53   |           ^^^^^^^^ patterns `S(B, _)`, `S(C, _)`, `S(D, _)` and 2 more not covered
54   |
55   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
56   = note: the matched value is of type `S`
57
58error[E0004]: non-exhaustive patterns: `Sd { x: B, .. }`, `Sd { x: C, .. }`, `Sd { x: D, .. }` and 2 more not covered
59  --> $DIR/issue-35609.rs:35:11
60   |
61LL | struct Sd { x: Enum, y: () }
62   | ---------------------------- `Sd` defined here
63...
64LL |     match (Sd { x: A, y: () }) {
65   |           ^^^^^^^^^^^^^^^^^^^^ patterns `Sd { x: B, .. }`, `Sd { x: C, .. }`, `Sd { x: D, .. }` and 2 more not covered
66   |
67   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
68   = note: the matched value is of type `Sd`
69
70error[E0004]: non-exhaustive patterns: `Some(B)`, `Some(C)`, `Some(D)` and 2 more not covered
71  --> $DIR/issue-35609.rs:39:11
72   |
73LL |     match Some(A) {
74   |           ^^^^^^^ patterns `Some(B)`, `Some(C)`, `Some(D)` and 2 more not covered
75   |
76   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
77   = note: the matched value is of type `std::option::Option<Enum>`
78
79error: aborting due to 8 previous errors
80
81For more information about this error, try `rustc --explain E0004`.