rust/tests/target/empty-tuple-no-conversion-to-unit-struct.rs
2017-12-02 17:45:39 +09:00

13 lines
168 B
Rust

enum TestEnum {
Arm1(),
Arm2,
}
fn foo() {
let test = TestEnum::Arm1;
match test {
TestEnum::Arm1() => {}
TestEnum::Arm2 => {}
}
}