]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/const-param.rs
Rollup merge of #104822 - spastorino:selctx-new-instead-of-with_query_mode, r=lcnr
[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() {}