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/pattern/usefulness/doc-hidden-non-exhaustive.stderr
+12-12
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,11 @@ LL ~ HiddenEnum::B => {}
16
16
LL + _ => todo!()
17
17
|
18
18
19
-
error[E0004]: non-exhaustive patterns: `B` not covered
19
+
error[E0004]: non-exhaustive patterns: `HiddenEnum::B` not covered
20
20
--> $DIR/doc-hidden-non-exhaustive.rs:21:11
21
21
|
22
22
LL | match HiddenEnum::A {
23
-
| ^^^^^^^^^^^^^ pattern `B` not covered
23
+
| ^^^^^^^^^^^^^ pattern `HiddenEnum::B` not covered
24
24
|
25
25
note: `HiddenEnum` defined here
26
26
--> $DIR/auxiliary/hidden.rs:3:5
@@ -34,14 +34,14 @@ LL | B,
34
34
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
35
35
|
36
36
LL ~ HiddenEnum::C => {}
37
-
LL + B => todo!()
37
+
LL + HiddenEnum::B => todo!()
38
38
|
39
39
40
-
error[E0004]: non-exhaustive patterns: `B` and `_` not covered
40
+
error[E0004]: non-exhaustive patterns: `HiddenEnum::B` and `_` not covered
41
41
--> $DIR/doc-hidden-non-exhaustive.rs:27:11
42
42
|
43
43
LL | match HiddenEnum::A {
44
-
| ^^^^^^^^^^^^^ patterns `B` and `_` not covered
44
+
| ^^^^^^^^^^^^^ patterns `HiddenEnum::B` and `_` not covered
45
45
|
46
46
note: `HiddenEnum` defined here
47
47
--> $DIR/auxiliary/hidden.rs:3:5
@@ -55,14 +55,14 @@ LL | B,
55
55
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
56
56
|
57
57
LL ~ HiddenEnum::A => {}
58
-
LL + B | _ => todo!()
58
+
LL + HiddenEnum::B | _ => todo!()
59
59
|
60
60
61
-
error[E0004]: non-exhaustive patterns: `Some(B)` and `Some(_)` not covered
61
+
error[E0004]: non-exhaustive patterns: `Some(HiddenEnum::B)` and `Some(_)` not covered
62
62
--> $DIR/doc-hidden-non-exhaustive.rs:32:11
63
63
|
64
64
LL | match None {
65
-
| ^^^^ patterns `Some(B)` and `Some(_)` not covered
65
+
| ^^^^ patterns `Some(HiddenEnum::B)` and `Some(_)` not covered
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
77
77
|
78
78
LL ~ Some(HiddenEnum::A) => {}
79
-
LL + Some(B) | Some(_) => todo!()
79
+
LL + Some(HiddenEnum::B) | Some(_) => todo!()
80
80
|
81
81
82
-
error[E0004]: non-exhaustive patterns: `C` not covered
82
+
error[E0004]: non-exhaustive patterns: `InCrate::C` not covered
83
83
--> $DIR/doc-hidden-non-exhaustive.rs:38:11
84
84
|
85
85
LL | match InCrate::A {
86
-
| ^^^^^^^^^^ pattern `C` not covered
86
+
| ^^^^^^^^^^ pattern `InCrate::C` not covered
87
87
|
88
88
note: `InCrate` defined here
89
89
--> $DIR/doc-hidden-non-exhaustive.rs:11:5
@@ -97,7 +97,7 @@ LL | C,
97
97
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
0 commit comments