]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/const-param.rs
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[rust.git] / src / test / ui / binding / const-param.rs
1 // Identifier pattern referring to a const generic parameter is an error (issue #68853).
2
3 #![feature(const_generics)] //~ WARN the feature `const_generics` is incomplete
4
5 fn check<const N: usize>() {
6     match 1 {
7         N => {} //~ ERROR const parameters cannot be referenced in patterns
8         _ => {}
9     }
10 }
11
12 fn main() {}