rust/tests/ui/pattern/non-structural-match-types.rs

15 lines
312 B
Rust

//@ edition:2021
#![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
}
}