You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/test/ui/closures/2229_closure_analysis/match/issue-88331.stderr
+20-8
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,38 @@
1
1
error[E0004]: non-exhaustive patterns: `Opcode(0_u8)` and `Opcode(2_u8..=u8::MAX)` not covered
2
2
--> $DIR/issue-88331.rs:11:20
3
3
|
4
-
LL | pub struct Opcode(pub u8);
5
-
| -------------------------- `Opcode` defined here
6
-
...
7
4
LL | move |i| match msg_type {
8
5
| ^^^^^^^^ patterns `Opcode(0_u8)` and `Opcode(2_u8..=u8::MAX)` not covered
9
6
|
10
-
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
7
+
note: `Opcode` defined here
8
+
--> $DIR/issue-88331.rs:4:12
9
+
|
10
+
LL | pub struct Opcode(pub u8);
11
+
| ^^^^^^
11
12
= note: the matched value is of type `Opcode`
13
+
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
error[E0004]: non-exhaustive patterns: `Opcode2(Opcode(0_u8))` and `Opcode2(Opcode(2_u8..=u8::MAX))` not covered
14
20
--> $DIR/issue-88331.rs:27:20
15
21
|
16
-
LL | pub struct Opcode2(Opcode);
17
-
| --------------------------- `Opcode2` defined here
18
-
...
19
22
LL | move |i| match msg_type {
20
23
| ^^^^^^^^ patterns `Opcode2(Opcode(0_u8))` and `Opcode2(Opcode(2_u8..=u8::MAX))` not covered
21
24
|
22
-
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
25
+
note: `Opcode2` defined here
26
+
--> $DIR/issue-88331.rs:18:12
27
+
|
28
+
LL | pub struct Opcode2(Opcode);
29
+
| ^^^^^^^
23
30
= note: the matched value is of type `Opcode2`
31
+
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
0 commit comments