summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-34047.rs
blob: 55196177f6934b01ada446f73d5f55ef2556fbf1 (plain)
1
2
3
4
5
6
7
8
const C: u8 = 0;

fn main() {
    match 1u8 {
        mut C => {} //~ ERROR match bindings cannot shadow constants
        _ => {}
    }
}