summaryrefslogtreecommitdiffstats
path: root/tests/ui/inline-const/pat-match-fndef.rs
blob: fbd4dc66c3a055db7cda4b977c0f7a012c6ec0ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(inline_const_pat)]
//~^ WARN the feature `inline_const_pat` is incomplete

fn uwu() {}

fn main() {
    let x = [];
    match x[123] {
        const { uwu } => {}
        //~^ ERROR `fn() {uwu}` cannot be used in patterns
        _ => {}
    }
}