]>
git.proxmox.com Git - rustc.git/blob - 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
4 fn is_123
<const N
: usize>(x
: [u32; N
]) -> bool
{
6 [1, 2] => true, //~ ERROR mismatched types