2020-03-14 19:44:11 +03:00
|
|
|
// Identifier pattern referring to a const generic parameter is an error (issue #68853).
|
|
|
|
|
|
|
|
|
|
fn check<const N: usize>() {
|
|
|
|
|
match 1 {
|
2024-11-20 03:57:30 +00:00
|
|
|
N => {} //~ ERROR constant parameters cannot be referenced in patterns
|
2020-03-14 19:44:11 +03:00
|
|
|
_ => {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|