Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
consts
/
const-nullary-enum.rs
blob: b6574dce6ca0f9e64da3b236a08dd9768f6a7b17 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
enum
Foo
{
Bar
,
Baz
,
Boo
,
}
static
X
:
Foo
=
Foo
::
Bar
;
pub
fn
main
()
{
match
X
{
Foo
::
Bar
=>
{}
Foo
::
Baz
|
Foo
::
Boo
=>
panic
!()
}
match
Y
{
Foo
::
Baz
=>
{}
Foo
::
Bar
|
Foo
::
Boo
=>
panic
!()
}
}
static
Y
:
Foo
=
Foo
::
Baz
;