1 // Checks that const parameters cannot be shadowed with fresh bindings
2 // even in syntactically unambiguous contexts. See
3 // https://github.com/rust-lang/rust/issues/33118#issuecomment-233962221
5 fn foo<const N: i32>(i: i32) -> bool {
8 //~^ ERROR: match bindings cannot shadow const parameters [E0530]
12 fn bar<const N: i32>(i: i32) -> bool {
14 //~^ ERROR: let bindings cannot shadow const parameters [E0530]