mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
13 lines
357 B
Plaintext
13 lines
357 B
Plaintext
warning: unreachable pattern
|
|
--> $DIR/packed_pattern.rs:16:9
|
|
|
|
|
LL | Foo { field: (5, 6, 7, 8) } => {},
|
|
| --------------------------- matches all the relevant values
|
|
LL | FOO => unreachable!(),
|
|
| ^^^ no value can reach this
|
|
|
|
|
= note: `#[warn(unreachable_patterns)]` on by default
|
|
|
|
warning: 1 warning emitted
|
|
|