]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0730.rs
Rollup merge of #87910 - iago-lito:mark_unsafe_nonzero_arithmetics_as_const, r=joshtr...
[rust.git] / src / test / ui / error-codes / E0730.rs
1 fn is_123<const N: usize>(x: [u32; N]) -> bool {
2     match x {
3         [1, 2, ..] => true, //~ ERROR cannot pattern-match on an array without a fixed length
4         _ => false
5     }
6 }
7
8 fn main() {}