Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
// revisions: mir thir
// [mir]ignore-test This is currently broken
// [thir]compile-flags: -Z thir-unsafeck
#![allow(incomplete_features)]
#![feature(inline_const_pat)]
const unsafe fn require_unsafe() -> usize {
1
}
fn main() {
match () {
const {
require_unsafe();
//~^ ERROR [E0133]
} => (),
match 1 {
require_unsafe()
}..=4 => (),
_ => (),