mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
17 lines
466 B
Plaintext
17 lines
466 B
Plaintext
error: unreachable pattern
|
|
--> $DIR/unreachable-arm.rs:11:9
|
|
|
|
|
LL | Foo::B(_) | Foo::A(box _, 1) => { }
|
|
| ---------------------------- matches all the relevant values
|
|
LL | Foo::A(_, 1) => { }
|
|
| ^^^^^^^^^^^^ no value can reach this
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unreachable-arm.rs:4:9
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|