Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-enum-byref.rs
blob: 0284bb9d9eaa0a466160ed9bd95ecb5cc7e224dd [
file
] [
log
] [
blame
] [
edit
]
//@ 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
)
}