summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/non-structural-match-types.rs
blob: 5c33154736650b04f59982bbedd104f99bf75c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// edition:2021
#![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
    }
}