summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-116186.rs
blob: a77c38c64dc57a69cbf7d15f7577c0bac52859c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]

fn something(path: [usize; N]) -> impl Clone {
    //~^ ERROR cannot find value `N` in this scope
    match path {
        [] => 0, //~ ERROR cannot pattern-match on an array without a fixed length
        _ => 1,
    };
}

fn main() {}