Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
binding
/
match-struct-0.rs
blob: c49f3ed61783647186fec1913b309b648fe75783 [
file
] [
log
] [
blame
]
// run-pass
struct
Foo
{
f
:
isize
,
}
pub
fn
main
()
{
let
f
=
Foo
{
f
:
1
};
match
f
{
Foo
{
f
:
0
}
=>
panic
!(),
Foo
{..}
=>
(),
}
match
f
{
Foo
{
f
:
0
}
=>
panic
!(),
Foo
{
f
:
_f
}
=>
(),
}
match
f
{
Foo
{
f
:
0
}
=>
panic
!(),
_
=>
(),
}
}