Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
consts
/
const-enum-byref.rs
blob: badf529465432fac8db303bcd6ade4bddab65b9f [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
enum
E
{
V
,
VV
(
isize
)
}
static
C
:
E
=
E
::
V
;
fn
f
(
a
:
&
E
)
{
match
*
a
{
E
::
V
=>
{}
E
::
VV
(..)
=>
panic
!()
}
}
pub
fn
main
()
{
f
(&
C
)
}