rust/tests/ui/consts/issue-116186.rs

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

13 lines
236 B
Rust
Raw Normal View History

#![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() {}