summary refs log tree commit diff
path: root/tests/ui/consts/const-unit-struct.rs
blob: 096cd1e83847a35326ea163f5669dec8fc2dd673 (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 => {}
    }
}