about summary refs log tree commit diff
path: root/tests/ui/structs-enums/unit-like-struct.rs
blob: 8a2f500676e688bfbeec60a9485a706adb0aab0f (plain)
1
2
3
4
5
6
7
8
9
//@ run-pass
struct Foo;

pub fn main() {
    let x: Foo = Foo;
    match x {
        Foo => { println!("hi"); }
    }
}