blob: 67a41bc5dc4addaa52b0efeeb9612c3b3f1ebb8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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() {}
|