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() {}