Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
binding
/
match-enum-struct-0.rs
blob: 6885cffadc912c2e23b090833387fd910d016fc7 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
dead_code
)]
// regression test for issue #5625
enum
E
{
Foo
{
f
:
isize
},
Bar
}
pub
fn
main
()
{
let
e
=
E
::
Bar
;
match
e
{
E
::
Foo
{
f
:
_f
}
=>
panic
!(),
_
=>
(),
}
}