mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
236 B
Rust
13 lines
236 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,
|
|
_ => 1,
|
|
};
|
|
}
|
|
|
|
fn main() {}
|