fn foo<const V: usize>() {
  match 0 {
    const { V } => {},
    //~^ ERROR const parameters cannot be referenced in patterns [E0158]
    _ => {},
  }
}
// rust-lang/rust#82518: ICE with inline-const in match referencing const-generic parameter
rust-lang/rust#82518: ICE with inline-const in match referencing const-generic parameter
rust - lang / rust#82518 : ICE with inline - const in match referencing const - generic parameter
fn foo<const V: usize>() {
  match 0 {
    const { V } => {},
    //~^ ERROR const parameters cannot be referenced in patterns [E0158]
    _ => {},
  }
}
fn foo < const V : usize > ( ) { match 0 { const { V } => { } , //~^ ERROR const parameters cannot be referenced in patterns [E0158] _ => { } , } }
rust-lang/rust#82518: ICE with inline-const in match referencing const-generic parameter
rust - lang / rust#82518 : ICE with inline - const in match referencing const - generic parameter