2018-02-08 03:35:35 +00:00
|
|
|
error: unreachable pattern
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0001.rs:8:9
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2024-07-24 06:40:04 +00:00
|
|
|
LL | _ => {/* ... */}
|
2024-08-19 18:51:21 +00:00
|
|
|
| ^ no value can reach this
|
2024-07-24 06:40:04 +00:00
|
|
|
|
|
2024-08-19 18:51:21 +00:00
|
|
|
note: multiple earlier patterns match some of the same values
|
2024-07-24 06:40:04 +00:00
|
|
|
--> $DIR/E0001.rs:8:9
|
|
|
|
|
|
2024-07-21 12:46:05 +00:00
|
|
|
LL | Some(_) => {/* ... */}
|
|
|
|
| ------- matches some of the same values
|
|
|
|
LL | None => {/* ... */}
|
|
|
|
| ---- matches some of the same values
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | _ => {/* ... */}
|
2024-07-24 06:40:04 +00:00
|
|
|
| ^ collectively making this unreachable
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0001.rs:1:9
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #![deny(unreachable_patterns)]
|
2018-02-08 03:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-02-08 03:35:35 +00:00
|
|
|
|