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