@@ -11,51 +11,51 @@ LL | #![deny(unreachable_patterns)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: unreachable pattern
14
- --> $DIR/match-empty-exhaustive_patterns.rs:29 :9
14
+ --> $DIR/match-empty-exhaustive_patterns.rs:28 :9
15
15
|
16
16
LL | Some(_) => {}
17
17
| ^^^^^^^
18
18
19
19
error: unreachable pattern
20
- --> $DIR/match-empty-exhaustive_patterns.rs:33 :9
20
+ --> $DIR/match-empty-exhaustive_patterns.rs:32 :9
21
21
|
22
22
LL | Some(_) => {}
23
23
| ^^^^^^^
24
24
25
25
error[E0004]: non-exhaustive patterns: type `u8` is non-empty
26
- --> $DIR/match-empty-exhaustive_patterns.rs:36 :11
26
+ --> $DIR/match-empty-exhaustive_patterns.rs:35 :11
27
27
|
28
28
LL | match 0u8 {}
29
29
| ^^^
30
30
|
31
31
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
32
32
33
33
error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty
34
- --> $DIR/match-empty-exhaustive_patterns.rs:38 :11
34
+ --> $DIR/match-empty-exhaustive_patterns.rs:37 :11
35
35
|
36
36
LL | match NonEmptyStruct(true) {}
37
37
| ^^^^^^^^^^^^^^^^^^^^
38
38
|
39
39
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
40
40
41
41
error[E0004]: non-exhaustive patterns: type `NonEmptyEnum1` is non-empty
42
- --> $DIR/match-empty-exhaustive_patterns.rs:40 :11
42
+ --> $DIR/match-empty-exhaustive_patterns.rs:39 :11
43
43
|
44
44
LL | match NonEmptyEnum1::Foo(true) {}
45
45
| ^^^^^^^^^^^^^^^^^^^^^^^^
46
46
|
47
47
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
48
48
49
49
error[E0004]: non-exhaustive patterns: type `NonEmptyEnum2` is non-empty
50
- --> $DIR/match-empty-exhaustive_patterns.rs:42 :11
50
+ --> $DIR/match-empty-exhaustive_patterns.rs:41 :11
51
51
|
52
52
LL | match NonEmptyEnum2::Foo(true) {}
53
53
| ^^^^^^^^^^^^^^^^^^^^^^^^
54
54
|
55
55
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
56
56
57
57
error[E0004]: non-exhaustive patterns: type `NonEmptyEnum5` is non-empty
58
- --> $DIR/match-empty-exhaustive_patterns.rs:44 :11
58
+ --> $DIR/match-empty-exhaustive_patterns.rs:43 :11
59
59
|
60
60
LL | match NonEmptyEnum5::V1 {}
61
61
| ^^^^^^^^^^^^^^^^^
0 commit comments