Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
structs-enums
/
namespaced-enums.rs
blob: 3e2e0b5ffa8fdb3fcc664a8eeca4a8d3ff170061 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
enum
Foo
{
A
,
B
(
isize
),
C
{
a
:
isize
},
}
fn
_foo
(
f
:
Foo
)
{
match
f
{
Foo
::
A
|
Foo
::
B
(
_
)
|
Foo
::
C
{
..
}
=>
{}
}
}
pub
fn
main
()
{}