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