Sign in
fuchsia
/
third_party
/
rust
/
3b4b9a4247febf0e71f3480fd34775850b77fea4
/
.
/
src
/
test
/
ui
/
consts
/
single_variant_match_ice.rs
blob: 67a41bc5dc4addaa52b0efeeb9612c3b3f1ebb8d [
file
] [
log
] [
blame
]
enum
Foo
{
Prob
,
}
impl
Foo
{
pub
const
fn
as_val
(&
self
)
->
u8
{
use
self
::
Foo
::*;
match
*
self
{
Prob
=>
0x1
,
//~ ERROR `if`, `match`, `&&` and `||` are not stable in const fn
}
}
}
fn
main
()
{}