Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-enum-byref-self.rs
blob: 435d714ad834371530561e674435b31c31c45852 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
dead_code
)]
enum
E
{
V
,
VV
(
isize
)
}
static
C
:
E
=
E
::
V
;
impl
E
{
pub
fn
method
(&
self
)
{
match
*
self
{
E
::
V
=>
{}
E
::
VV
(..)
=>
panic
!()
}
}
}
pub
fn
main
()
{
C
.
method
()
}