]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/top-level-alternation.stderr
ef7327471212a136fc0bf61315a5c7dad3d45c5a
[rust.git] / src / test / ui / pattern / usefulness / top-level-alternation.stderr
1 error: unreachable pattern
2   --> $DIR/top-level-alternation.rs:4:23
3    |
4 LL |     while let 0..=2 | 1 = 0 {}
5    |                       ^
6    |
7 note: lint level defined here
8   --> $DIR/top-level-alternation.rs:1:9
9    |
10 LL | #![deny(unreachable_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 warning: irrefutable if-let pattern
14   --> $DIR/top-level-alternation.rs:5:20
15    |
16 LL |     if let 0..=2 | 1 = 0 {}
17    |                    ^
18    |
19    = note: `#[warn(irrefutable_let_patterns)]` on by default
20
21 error: unreachable pattern
22   --> $DIR/top-level-alternation.rs:10:15
23    |
24 LL |             | 0 => {}
25    |               ^
26
27 error: unreachable pattern
28   --> $DIR/top-level-alternation.rs:15:15
29    |
30 LL |             | Some(0) => {}
31    |               ^^^^^^^
32
33 error: unreachable pattern
34   --> $DIR/top-level-alternation.rs:20:9
35    |
36 LL |         (0, 0) => {}
37    |         ^^^^^^
38
39 error: unreachable pattern
40   --> $DIR/top-level-alternation.rs:40:9
41    |
42 LL |         _ => {}
43    |         ^
44
45 error: unreachable pattern
46   --> $DIR/top-level-alternation.rs:44:9
47    |
48 LL |         Some(_) => {}
49    |         ^^^^^^^
50
51 error: unreachable pattern
52   --> $DIR/top-level-alternation.rs:45:9
53    |
54 LL |         None => {}
55    |         ^^^^
56
57 error: unreachable pattern
58   --> $DIR/top-level-alternation.rs:50:9
59    |
60 LL |         None
61    |         ^^^^
62
63 error: unreachable pattern
64   --> $DIR/top-level-alternation.rs:51:15
65    |
66 LL |             | Some(_) => {}
67    |               ^^^^^^^
68
69 error: unreachable pattern
70   --> $DIR/top-level-alternation.rs:55:9
71    |
72 LL |         1..=2 => {},
73    |         ^^^^^
74
75 error: aborting due to 10 previous errors
76