summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-unit-struct.rs
blob: 1c9e0e8d3c9891887011e32435e5a69592d6b1b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// pretty-expanded FIXME #23616

struct Foo;

static X: Foo = Foo;

pub fn main() {
    match X {
        Foo => {}
    }
}