1 error: unreachable pattern
2 --> $DIR/top-level-alternation.rs:6:23
4 LL | while let 0..=2 | 1 = 0 {}
7 note: the lint level is defined here
8 --> $DIR/top-level-alternation.rs:3:9
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: unreachable pattern
14 --> $DIR/top-level-alternation.rs:7:20
16 LL | if let 0..=2 | 1 = 0 {}
19 error: unreachable pattern
20 --> $DIR/top-level-alternation.rs:11:15
25 error: unreachable pattern
26 --> $DIR/top-level-alternation.rs:16:15
31 error: unreachable pattern
32 --> $DIR/top-level-alternation.rs:21:9
37 error: unreachable pattern
38 --> $DIR/top-level-alternation.rs:41:9
43 error: unreachable pattern
44 --> $DIR/top-level-alternation.rs:45:9
49 error: unreachable pattern
50 --> $DIR/top-level-alternation.rs:46:9
55 error: unreachable pattern
56 --> $DIR/top-level-alternation.rs:51:9
58 LL | None | Some(_) => {}
61 error: unreachable pattern
62 --> $DIR/top-level-alternation.rs:55:9
67 error: unreachable pattern
68 --> $DIR/top-level-alternation.rs:58:14
70 LL | let (0 | 0) = 0 else { return };
73 error: aborting due to 11 previous errors