fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.4 KiB68 linesraw
1error: unreachable pattern
2  --> $DIR/top-level-alternation.rs:4:23
3   |
4LL |     while let 0..=2 | 1 = 0 {}
5   |                       ^
6   |
7note: the lint level is defined here
8  --> $DIR/top-level-alternation.rs:1:9
9   |
10LL | #![deny(unreachable_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14  --> $DIR/top-level-alternation.rs:5:20
15   |
16LL |     if let 0..=2 | 1 = 0 {}
17   |                    ^
18
19error: unreachable pattern
20  --> $DIR/top-level-alternation.rs:9:15
21   |
22LL |             | 0 => {}
23   |               ^
24
25error: unreachable pattern
26  --> $DIR/top-level-alternation.rs:14:15
27   |
28LL |             | Some(0) => {}
29   |               ^^^^^^^
30
31error: unreachable pattern
32  --> $DIR/top-level-alternation.rs:19:9
33   |
34LL |         (0, 0) => {}
35   |         ^^^^^^
36
37error: unreachable pattern
38  --> $DIR/top-level-alternation.rs:39:9
39   |
40LL |         _ => {}
41   |         ^
42
43error: unreachable pattern
44  --> $DIR/top-level-alternation.rs:43:9
45   |
46LL |         Some(_) => {}
47   |         ^^^^^^^
48
49error: unreachable pattern
50  --> $DIR/top-level-alternation.rs:44:9
51   |
52LL |         None => {}
53   |         ^^^^
54
55error: unreachable pattern
56  --> $DIR/top-level-alternation.rs:49:9
57   |
58LL |         None | Some(_) => {}
59   |         ^^^^^^^^^^^^^^
60
61error: unreachable pattern
62  --> $DIR/top-level-alternation.rs:53:9
63   |
64LL |         1..=2 => {},
65   |         ^^^^^
66
67error: aborting due to 10 previous errors
68