2019-05-04 11:03:06 +01:00
|
|
|
error: unreachable pattern
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $DIR/patterns_same_crate.rs:52:9
|
2019-05-04 11:03:06 +01:00
|
|
|
|
|
|
|
|
LL | Some(_x) => (),
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-05-04 11:08:57 +01:00
|
|
|
--> $DIR/patterns_same_crate.rs:1:9
|
2019-05-04 11:03:06 +01:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $DIR/patterns_same_crate.rs:57:9
|
2019-05-04 11:03:06 +01:00
|
|
|
|
|
|
|
|
LL | Some(_x) => (),
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $DIR/patterns_same_crate.rs:61:15
|
2019-05-04 11:03:06 +01:00
|
|
|
|
|
|
|
|
LL | while let PartiallyInhabitedVariants::Struct { x } = partially_inhabited_variant() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $DIR/patterns_same_crate.rs:65:15
|
2019-05-04 11:03:06 +01:00
|
|
|
|
|
|
|
|
LL | while let Some(_x) = uninhabited_struct() {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $DIR/patterns_same_crate.rs:68:15
|
2019-05-04 11:03:06 +01:00
|
|
|
|
|
|
|
|
LL | while let Some(_x) = uninhabited_tuple_struct() {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|