mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
302 B
Rust
12 lines
302 B
Rust
#![allow(incomplete_features)]
|
|
#![feature(generic_const_exprs)]
|
|
|
|
fn something(path: [usize; N]) -> impl Clone {
|
|
//~^ ERROR cannot find value `N` in this scope
|
|
match path {
|
|
[] => 0, //~ ERROR cannot pattern-match on an array without a fixed length
|
|
_ => 1,
|
|
};
|
|
}
|
|
|
|
fn main() {}
|