]> git.proxmox.com Git - rustc.git/blob - src/test/ui/array-slice-vec/match_arr_unknown_len.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / array-slice-vec / match_arr_unknown_len.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
3
4 fn is_123<const N: usize>(x: [u32; N]) -> bool {
5 match x {
6 [1, 2] => true, //~ ERROR mismatched types
7 _ => false
8 }
9 }
10
11 fn main() {}