mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +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
|
|
|