]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0730.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / error-codes / E0730.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
3
4 fn is_123<const N: usize>(x: [u32; N]) -> bool {
5     match x {
6         [1, 2, ..] => true, //~ ERROR cannot pattern-match on an array without a fixed length
7         _ => false
8     }
9 }
10
11 fn main() {}