Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
consts
/
control-flow
/
single_variant_match_ice.rs
blob: aa0cdc01837e8e1cd9a86760371de6e08011e61f [
file
] [
log
] [
blame
]
//@ check-pass
enum
Foo
{
Prob
,
}
const
FOO
:
u32
=
match
Foo
::
Prob
{
Foo
::
Prob
=>
42
,
};
const
BAR
:
u32
=
match
Foo
::
Prob
{
x
=>
42
,
};
impl
Foo
{
pub
const
fn
as_val
(&
self
)
->
u8
{
use
self
::
Foo
::*;
match
*
self
{
Prob
=>
0x1
,
}
}
}
fn
main
()
{}