mirror of https://github.com/rust-lang/rust
54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
error: unreachable pattern
|
|
--> $DIR/patterns_same_crate.rs:53:9
|
|
|
|
|
LL | Some(_x) => (),
|
|
| ^^^^^^^^-------
|
|
| |
|
|
| matches no values because `UninhabitedEnum` is uninhabited
|
|
| help: remove the match arm
|
|
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
|
note: the lint level is defined here
|
|
--> $DIR/patterns_same_crate.rs:2:9
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: unreachable pattern
|
|
--> $DIR/patterns_same_crate.rs:58:9
|
|
|
|
|
LL | Some(_x) => (),
|
|
| ^^^^^^^^-------
|
|
| |
|
|
| matches no values because `UninhabitedVariants` is uninhabited
|
|
| help: remove the match arm
|
|
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
|
|
|
error: unreachable pattern
|
|
--> $DIR/patterns_same_crate.rs:62:15
|
|
|
|
|
LL | while let PartiallyInhabitedVariants::Struct { x } = partially_inhabited_variant() {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ matches no values because `!` is uninhabited
|
|
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
|
|
|
error: unreachable pattern
|
|
--> $DIR/patterns_same_crate.rs:66:15
|
|
|
|
|
LL | while let Some(_x) = uninhabited_struct() {
|
|
| ^^^^^^^^ matches no values because `UninhabitedStruct` is uninhabited
|
|
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
|
|
|
error: unreachable pattern
|
|
--> $DIR/patterns_same_crate.rs:69:15
|
|
|
|
|
LL | while let Some(_x) = uninhabited_tuple_struct() {
|
|
| ^^^^^^^^ matches no values because `UninhabitedTupleStruct` is uninhabited
|
|
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
|
|
|
error: aborting due to 5 previous errors
|
|
|