rust/tests/ui/array-slice-vec/match_arr_unknown_len.rs

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

9 lines
155 B
Rust
Raw Normal View History

2020-03-30 12:34:16 -05:00
fn is_123<const N: usize>(x: [u32; N]) -> bool {
match x {
[1, 2] => true, //~ ERROR mismatched types
_ => false
}
}
fn main() {}