let _: [u8; 0] = [4; {
match &1 as *const i32 as usize {
//~^ ERROR casting pointers to integers in constants
- //~| ERROR constant contains unimplemented expression type
+ //~| ERROR `match` is not allowed in a `const`
//~| ERROR evaluation of constant value failed
- 0 => 42, //~ ERROR constant contains unimplemented expression type
+ 0 => 42,
n => n,
}
}];