summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17933.rs
blob: 6da4e6e15284bcc44f9c3e9a74463af3358e2524 (plain)
1
2
3
4
5
6
7
8
9
pub static X: usize = 1;

fn main() {
    match 1 {
        self::X => { },
        //~^ ERROR expected unit struct, unit variant or constant, found static `self::X`
        _       => { },
    }
}