Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
consts
/
const-enum-byref-self.rs
blob: b7e14bfb76585d933a85c5910936fc43136afb8f [
file
] [
log
] [
blame
]
// 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
()
}