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: tests/ui/pattern/usefulness/doc-hidden-non-exhaustive.stderr
+9-9
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,13 @@ LL | match HiddenEnum::A {
23
23
| ^^^^^^^^^^^^^ pattern `HiddenEnum::B` not covered
24
24
|
25
25
note: `HiddenEnum` defined here
26
-
--> $DIR/auxiliary/hidden.rs:3:5
26
+
--> $DIR/auxiliary/hidden.rs:1:1
27
27
|
28
28
LL | pub enum HiddenEnum {
29
-
| -------------------
29
+
| ^^^^^^^^^^^^^^^^^^^
30
30
LL | A,
31
31
LL | B,
32
-
| ^ not covered
32
+
| - not covered
33
33
= note: the matched value is of type `HiddenEnum`
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
|
@@ -44,13 +44,13 @@ LL | match HiddenEnum::A {
44
44
| ^^^^^^^^^^^^^ patterns `HiddenEnum::B` and `_` not covered
45
45
|
46
46
note: `HiddenEnum` defined here
47
-
--> $DIR/auxiliary/hidden.rs:3:5
47
+
--> $DIR/auxiliary/hidden.rs:1:1
48
48
|
49
49
LL | pub enum HiddenEnum {
50
-
| -------------------
50
+
| ^^^^^^^^^^^^^^^^^^^
51
51
LL | A,
52
52
LL | B,
53
-
| ^ not covered
53
+
| - not covered
54
54
= note: the matched value is of type `HiddenEnum`
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
|
@@ -83,13 +83,13 @@ LL | match InCrate::A {
83
83
| ^^^^^^^^^^ pattern `InCrate::C` not covered
84
84
|
85
85
note: `InCrate` defined here
86
-
--> $DIR/doc-hidden-non-exhaustive.rs:11:5
86
+
--> $DIR/doc-hidden-non-exhaustive.rs:7:6
87
87
|
88
88
LL | enum InCrate {
89
-
| -------
89
+
| ^^^^^^^
90
90
...
91
91
LL | C,
92
-
| ^ not covered
92
+
| - not covered
93
93
= note: the matched value is of type `InCrate`
94
94
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
| ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
295
299
|
296
300
note: `NonEmptyEnum2` defined here
297
-
--> $DIR/empty-match.rs:40:5
301
+
--> $DIR/empty-match.rs:39:6
298
302
|
299
303
LL | enum NonEmptyEnum2 {
300
-
| -------------
304
+
| ^^^^^^^^^^^^^
305
+
...
301
306
LL | Foo(bool),
302
-
| ^^^ not covered
307
+
| --- not covered
303
308
...
304
309
LL | Bar,
305
-
| ^^^ not covered
310
+
| --- not covered
306
311
= note: the matched value is of type `NonEmptyEnum2`
307
312
= note: match arms with guards don't count towards exhaustivity
308
313
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
| ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
294
298
|
295
299
note: `NonEmptyEnum2` defined here
296
-
--> $DIR/empty-match.rs:40:5
300
+
--> $DIR/empty-match.rs:39:6
297
301
|
298
302
LL | enum NonEmptyEnum2 {
299
-
| -------------
303
+
| ^^^^^^^^^^^^^
304
+
...
300
305
LL | Foo(bool),
301
-
| ^^^ not covered
306
+
| --- not covered
302
307
...
303
308
LL | Bar,
304
-
| ^^^ not covered
309
+
| --- not covered
305
310
= note: the matched value is of type `NonEmptyEnum2`
306
311
= note: match arms with guards don't count towards exhaustivity
307
312
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