2019-11-29 12:25:36 +00:00
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:4:23
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
|
LL | while let 0..=2 | 1 = 0 {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ----- ^ no value can reach this
|
2024-07-21 14:46:05 +02:00
|
|
|
| |
|
2024-08-19 20:51:21 +02:00
|
|
|
| matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:1:9
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-11-29 12:51:34 +00:00
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:5:20
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
|
LL | if let 0..=2 | 1 = 0 {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ----- ^ no value can reach this
|
2024-07-21 14:46:05 +02:00
|
|
|
| |
|
2024-08-19 20:51:21 +02:00
|
|
|
| matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:9:15
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | 0
|
2024-08-19 20:51:21 +02:00
|
|
|
| - matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
LL | | 0 => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^ no value can reach this
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:14:15
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | Some(0)
|
2024-08-19 20:51:21 +02:00
|
|
|
| ------- matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
LL | | Some(0) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^ no value can reach this
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:19:9
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | (0, _) | (_, 0) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| --------------- matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
LL | (0, 0) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^ no value can reach this
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:39:9
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | None | Some(_) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| -------------- matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
LL | _ => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^ no value can reach this
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:43:9
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | None | Some(_) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| -------------- matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
LL | Some(_) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^ no value can reach this
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:44:9
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | None | Some(_) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| -------------- matches all the relevant values
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | Some(_) => {}
|
2019-11-29 12:25:36 +00:00
|
|
|
LL | None => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^ no value can reach this
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:49:9
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-24 08:40:04 +02:00
|
|
|
LL | None | Some(_) => {}
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^ no value can reach this
|
2024-07-24 08:40:04 +02:00
|
|
|
|
|
2024-08-19 20:51:21 +02:00
|
|
|
note: multiple earlier patterns match some of the same values
|
2024-07-24 08:40:04 +02:00
|
|
|
--> $DIR/top-level-alternation.rs:49:9
|
|
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | Some(_) => {}
|
|
|
|
|
| ------- matches some of the same values
|
|
|
|
|
LL | None => {}
|
|
|
|
|
| ---- matches some of the same values
|
2019-11-29 15:53:54 +00:00
|
|
|
LL | None | Some(_) => {}
|
2024-07-24 08:40:04 +02:00
|
|
|
| ^^^^^^^^^^^^^^ collectively making this unreachable
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:53:9
|
2019-11-29 12:25:36 +00:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | 1 | 2 => {},
|
2024-08-19 20:51:21 +02:00
|
|
|
| ----- matches all the relevant values
|
2019-11-29 12:25:36 +00:00
|
|
|
LL | 1..=2 => {},
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^ no value can reach this
|
2019-11-29 12:25:36 +00:00
|
|
|
|
2021-07-30 17:14:34 -05:00
|
|
|
error: unreachable pattern
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/top-level-alternation.rs:56:14
|
2021-07-30 17:14:34 -05:00
|
|
|
|
|
|
|
|
|
LL | let (0 | 0) = 0 else { return };
|
2024-08-19 20:51:21 +02:00
|
|
|
| - ^ no value can reach this
|
2024-07-21 14:46:05 +02:00
|
|
|
| |
|
2024-08-19 20:51:21 +02:00
|
|
|
| matches all the relevant values
|
2021-07-30 17:14:34 -05:00
|
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2019-11-29 12:25:36 +00:00
|
|
|
|