@@ -2,9 +2,8 @@ error: unreachable pattern
2
2
--> $DIR/empty-match-check-notes.rs:17:9
3
3
|
4
4
LL | _ => {}
5
- | ^
5
+ | ^ matches no values because `EmptyEnum` is uninhabited
6
6
|
7
- = note: matches no values because `EmptyEnum` is uninhabited
8
7
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
9
8
note: the lint level is defined here
10
9
--> $DIR/empty-match-check-notes.rs:7:9
@@ -16,27 +15,24 @@ error: unreachable pattern
16
15
--> $DIR/empty-match-check-notes.rs:22:9
17
16
|
18
17
LL | _ if false => {}
19
- | ^
18
+ | ^ matches no values because `EmptyEnum` is uninhabited
20
19
|
21
- = note: matches no values because `EmptyEnum` is uninhabited
22
20
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
23
21
24
22
error: unreachable pattern
25
23
--> $DIR/empty-match-check-notes.rs:31:9
26
24
|
27
25
LL | _ => {}
28
- | ^
26
+ | ^ matches no values because `EmptyForeignEnum` is uninhabited
29
27
|
30
- = note: matches no values because `EmptyForeignEnum` is uninhabited
31
28
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
32
29
33
30
error: unreachable pattern
34
31
--> $DIR/empty-match-check-notes.rs:36:9
35
32
|
36
33
LL | _ if false => {}
37
- | ^
34
+ | ^ matches no values because `EmptyForeignEnum` is uninhabited
38
35
|
39
- = note: matches no values because `EmptyForeignEnum` is uninhabited
40
36
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
41
37
42
38
error[E0005]: refutable pattern in local binding
0 commit comments