summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17718-patterns.rs
blob: 2ca0f67f80e5ed24c3040b0df2c79e2f184bdbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
static A1: usize = 1;
static mut A2: usize = 1;
const A3: usize = 1;

fn main() {
    match 1 {
        A1 => {} //~ ERROR: match bindings cannot shadow statics
        A2 => {} //~ ERROR: match bindings cannot shadow statics
        A3 => {}
        _ => {}
    }
}