summary refs log tree commit diff
path: root/src/test/ui/array-slice-vec/match_arr_unknown_len.rs
blob: 7f3da75ddcbe8525b7cc439b30bc0d329c3098b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

fn is_123<const N: usize>(x: [u32; N]) -> bool {
    match x {
        [1, 2] => true, //~ ERROR mismatched types
        _ => false
    }
}

fn main() {}