blob: 95f2e087b5e7f3f1a64267fe2d0bc60c64a2905f [file] [log] [blame] [edit]
//! regression test for https://github.com/rust-lang/rust/issues/34047
const C: u8 = 0;
fn main() {
match 1u8 {
mut C => {} //~ ERROR match bindings cannot shadow constants
_ => {}
}
}