]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/const-param.rs
Auto merge of #104730 - petrochenkov:modchild5, r=cjgillot
[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 fn check<const N: usize>() {
4     match 1 {
5         N => {} //~ ERROR const parameters cannot be referenced in patterns
6         _ => {}
7     }
8 }
9
10 fn main() {}