rust/tests/target/empty-tuple-no-conversion-to-unit-struct.rs
2017-03-26 15:47:48 -07:00

14 lines
169 B
Rust

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