]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/single_variant_match_ice.rs
Rollup merge of #55621 - GuillaumeGomez:create-dir, r=QuietMisdreavus
[rust.git] / src / test / ui / consts / single_variant_match_ice.rs
1 enum Foo {
2     Prob,
3 }
4
5 impl Foo {
6     pub const fn as_val(&self) -> u8 {
7         use self::Foo::*;
8
9         match *self {
10             Prob => 0x1, //~ ERROR `if`, `match`, `&&` and `||` are not stable in const fn
11         }
12     }
13 }
14
15 fn main() {}