summaryrefslogtreecommitdiffstats
path: root/tests/ui/array-slice-vec/match_arr_unknown_len.rs
blob: d190d7054fee7df4e980f089d93371782491d959 (plain)
1
2
3
4
5
6
7
8
fn is_123<const N: usize>(x: [u32; N]) -> bool {
    match x {
        [1, 2] => true, //~ ERROR mismatched types
        _ => false
    }
}

fn main() {}