rust/src/test/run-pass/unit-like-struct.rs

9 lines
108 B
Rust

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