2019-02-10 07:59:13 -06:00
|
|
|
// run-pass
|
|
|
|
|
|
|
|
#[derive(PartialEq, Eq, Copy, Clone)]
|
|
|
|
#[repr(packed)]
|
|
|
|
struct Foo {
|
|
|
|
field: (i64, u32, u32, u32),
|
|
|
|
}
|
|
|
|
|
|
|
|
const FOO: Foo = Foo {
|
|
|
|
field: (5, 6, 7, 8),
|
|
|
|
};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match FOO {
|
|
|
|
Foo { field: (5, 6, 7, 8) } => {},
|
2019-11-05 18:00:00 -06:00
|
|
|
FOO => unreachable!(), //~ WARNING unreachable pattern
|
2019-02-10 07:59:13 -06:00
|
|
|
_ => unreachable!(),
|
|
|
|
}
|
|
|
|
}
|