blob: 5a35dbd7f93d6ef7b67e76d61ac73c8fb23ad8cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
error: unreachable pattern
--> $DIR/issue-57472.rs:15:13
|
LL | Punned { foo: [_], .. } => println!("foo"),
| ----------------------- matches all the relevant values
LL | Punned { bar: [_], .. } => println!("bar"),
| ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this
|
note: the lint level is defined here
--> $DIR/issue-57472.rs:2:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
--> $DIR/issue-57472.rs:32:17
|
LL | Punned { foo: [_] } => println!("foo"),
| ------------------- matches all the relevant values
LL | Punned { bar: [_] } => println!("bar"),
| ^^^^^^^^^^^^^^^^^^^ no value can reach this
error: aborting due to 2 previous errors
|