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