blob: fb7779fa80881a6bfdcc4df2a790729f601927b7 [file] [log] [blame]
// edition:2021
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
#![allow(incomplete_features)]
#![allow(unreachable_code)]
#![feature(const_async_blocks)]
#![feature(inline_const_pat)]
fn main() {
match loop {} {
const { || {} } => {} //~ ERROR cannot be used in patterns
}
match loop {} {
const { async {} } => {} //~ ERROR cannot be used in patterns
}
}