blob: 6ed3ac2356243186a78b8f0f73351e9daf38aed1 [file] [log] [blame]
#![allow(warnings)]
const x: bool = match Some(true) {
//~^ ERROR: constant contains unimplemented expression type [E0019]
Some(value) => true,
//~^ ERROR: constant contains unimplemented expression type [E0019]
_ => false
};
const y: bool = {
match Some(true) {
//~^ ERROR: constant contains unimplemented expression type [E0019]
Some(value) => true,
//~^ ERROR: constant contains unimplemented expression type [E0019]
_ => false
}
};
fn main() {}