]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/match_arr_unknown_len.rs
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / array-slice-vec / match_arr_unknown_len.rs
1 fn is_123<const N: usize>(x: [u32; N]) -> bool {
2     match x {
3         [1, 2] => true, //~ ERROR mismatched types
4         _ => false
5     }
6 }
7
8 fn main() {}