fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
984 B38 linesraw
1error: unreachable pattern
2  --> $DIR/patterns_same_crate.rs:52:9
3   |
4LL |         Some(_x) => (),
5   |         ^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/patterns_same_crate.rs:1:9
9   |
10LL | #![deny(unreachable_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14  --> $DIR/patterns_same_crate.rs:57:9
15   |
16LL |         Some(_x) => (),
17   |         ^^^^^^^^
18
19error: unreachable pattern
20  --> $DIR/patterns_same_crate.rs:61:15
21   |
22LL |     while let PartiallyInhabitedVariants::Struct { x } = partially_inhabited_variant() {
23   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25error: unreachable pattern
26  --> $DIR/patterns_same_crate.rs:65:15
27   |
28LL |     while let Some(_x) = uninhabited_struct() {
29   |               ^^^^^^^^
30
31error: unreachable pattern
32  --> $DIR/patterns_same_crate.rs:68:15
33   |
34LL |     while let Some(_x) = uninhabited_tuple_struct() {
35   |               ^^^^^^^^
36
37error: aborting due to 5 previous errors
38