mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
13 lines
368 B
Plaintext
13 lines
368 B
Plaintext
warning: unreachable pattern
|
|
--> $DIR/packed_pattern2.rs:24:9
|
|
|
|
|
LL | Bar { a: Foo { field: (5, 6) } } => {},
|
|
| -------------------------------- matches all the relevant values
|
|
LL | FOO => unreachable!(),
|
|
| ^^^ no value can reach this
|
|
|
|
|
= note: `#[warn(unreachable_patterns)]` on by default
|
|
|
|
warning: 1 warning emitted
|
|
|