]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0730.rs
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccjit-codegen
[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() {}