summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-16149.rs
blob: 51b60725c5a0c80f4ca5e8ab08a12a34b0d18db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
extern "C" {
    static externalValue: isize;
}

fn main() {
    let boolValue = match 42 {
        externalValue => true,
        //~^ ERROR match bindings cannot shadow statics
        _ => false,
    };
}