2019-01-13 14:23:32 +00:00
|
|
|
error: unreachable pattern
|
|
|
|
|
--> $DIR/issue-57472.rs:15:13
|
|
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | Punned { foo: [_], .. } => println!("foo"),
|
2024-08-19 20:51:21 +02:00
|
|
|
| ----------------------- matches all the relevant values
|
2019-01-13 14:23:32 +00:00
|
|
|
LL | Punned { bar: [_], .. } => println!("bar"),
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this
|
2019-01-13 14:23:32 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-01-13 14:23:32 +00:00
|
|
|
--> $DIR/issue-57472.rs:2:9
|
|
|
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2023-12-07 11:56:48 +00:00
|
|
|
--> $DIR/issue-57472.rs:32:17
|
2019-01-13 14:23:32 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | Punned { foo: [_] } => println!("foo"),
|
2024-08-19 20:51:21 +02:00
|
|
|
| ------------------- matches all the relevant values
|
2023-12-07 11:56:48 +00:00
|
|
|
LL | Punned { bar: [_] } => println!("bar"),
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ no value can reach this
|
2019-01-13 14:23:32 +00:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|