summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs-enums/unit-like-struct.rs
blob: 636ec99266717df313905d87d9220be2d93fe420 (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"); }
    }
}