]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/non-structural-match-types.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / pattern / non-structural-match-types.rs
1 // edition:2021
2 #![allow(incomplete_features)]
3 #![allow(unreachable_code)]
4 #![feature(const_async_blocks)]
5 #![feature(inline_const_pat)]
6
7 fn main() {
8     match loop {} {
9         const { || {} } => {}, //~ ERROR cannot be used in patterns
10     }
11     match loop {} {
12         const { async {} } => {}, //~ ERROR cannot be used in patterns
13     }
14 }