]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0730.rs
Rollup merge of #98617 - ChrisDenton:const-unwrap, r=Mark-Simulacrum
[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() {}