]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-35609.stderr
Auto merge of #78682 - glandium:issue78471, r=lcnr
[rust.git] / src / test / ui / pattern / usefulness / issue-35609.stderr
1 error[E0004]: non-exhaustive patterns: `(B, _)`, `(C, _)`, `(D, _)` and 2 more not covered
2   --> $DIR/issue-35609.rs:10:11
3    |
4 LL |     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
10 error[E0004]: non-exhaustive patterns: `(_, B)`, `(_, C)`, `(_, D)` and 2 more not covered
11   --> $DIR/issue-35609.rs:14:11
12    |
13 LL |     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
19 error[E0004]: non-exhaustive patterns: `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
20   --> $DIR/issue-35609.rs:18:11
21    |
22 LL |     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
28 error[E0004]: non-exhaustive patterns: `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
29   --> $DIR/issue-35609.rs:22:11
30    |
31 LL |     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
37 error[E0004]: non-exhaustive patterns: `((B, _), _)`, `((C, _), _)`, `((D, _), _)` and 2 more not covered
38   --> $DIR/issue-35609.rs:26:11
39    |
40 LL |     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
46 error[E0004]: non-exhaustive patterns: `S(B, _)`, `S(C, _)`, `S(D, _)` and 2 more not covered
47   --> $DIR/issue-35609.rs:31:11
48    |
49 LL | struct S(Enum, ());
50    | ------------------- `S` defined here
51 ...
52 LL |     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
58 error[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    |
61 LL | struct Sd { x: Enum, y: () }
62    | ---------------------------- `Sd` defined here
63 ...
64 LL |     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
70 error[E0004]: non-exhaustive patterns: `Some(B)`, `Some(C)`, `Some(D)` and 2 more not covered
71   --> $DIR/issue-35609.rs:39:11
72    |
73 LL |     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 `Option<Enum>`
78
79 error: aborting due to 8 previous errors
80
81 For more information about this error, try `rustc --explain E0004`.