Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
structs
/
struct-pattern-match-useless.rs
blob: 93f0a9317616926cf7d2d99681a05de04ac8c6f2 [
file
] [
log
] [
blame
]
#![
deny
(
unreachable_patterns
)]
struct
Foo
{
x
:
isize
,
y
:
isize
,
}
pub
fn
main
()
{
let
a
=
Foo
{
x
:
1
,
y
:
2
};
match
a
{
Foo
{
x
:
_x
,
y
:
_y
}
=>
(),
Foo
{
..
}
=>
()
//~ ERROR unreachable pattern
}
}