// 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 | |
} | |
} |