11 lines
315 B
Rust
11 lines
315 B
Rust
#![feature(const_generics)]
|
|
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
|
|
|
|
fn is_123<const N: usize>(x: [u32; N]) -> bool {
|
|
match x {
|
|
[1, 2, 3] => true, //~ ERROR cannot pattern-match on an array without a fixed length
|
|
_ => false
|
|
}
|
|
}
|
|
|
|
fn main() {}
|