rust/tests/ui/error-codes/E0730.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
198 B
Rust
Raw Normal View History

fn is_123<const N: usize>(x: [u32; N]) -> bool {
match x {
2020-03-30 17:34:16 +00:00
[1, 2, ..] => true, //~ ERROR cannot pattern-match on an array without a fixed length
_ => false
}
}
fn main() {}