2019-11-29 06:25:36 -06:00
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:4:23
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | while let 0..=2 | 1 = 0 {}
|
|
|
|
| ^
|
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:1:9
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-11-29 06:51:34 -06:00
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:5:20
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | if let 0..=2 | 1 = 0 {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:9:15
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | | 0 => {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:14:15
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | | Some(0) => {}
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:19:9
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | (0, 0) => {}
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:39:9
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | _ => {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:43:9
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | Some(_) => {}
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:44:9
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | None => {}
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:49:9
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
2019-11-29 09:53:54 -06:00
|
|
|
LL | None | Some(_) => {}
|
|
|
|
| ^^^^^^^^^^^^^^
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:53:9
|
2019-11-29 06:25:36 -06:00
|
|
|
|
|
|
|
|
LL | 1..=2 => {},
|
|
|
|
| ^^^^^
|
|
|
|
|
2021-07-30 17:14:34 -05:00
|
|
|
error: unreachable pattern
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/top-level-alternation.rs:56:14
|
2021-07-30 17:14:34 -05:00
|
|
|
|
|
|
|
|
LL | let (0 | 0) = 0 else { return };
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2019-11-29 06:25:36 -06:00
|
|
|
|