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