1 // Identifier pattern referring to a const generic parameter is an error (issue #68853).
3 #![feature(const_generics)] //~ WARN the feature `const_generics` is incomplete
5 fn check<const N: usize>() {
7 N => {} //~ ERROR const parameters cannot be referenced in patterns