]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/empty-tuple-no-conversion-to-unit-struct.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / empty-tuple-no-conversion-to-unit-struct.rs
1 enum TestEnum {
2     Arm1(),
3     Arm2,
4 }
5
6 fn foo() {
7     let test = TestEnum::Arm1;
8     match test {
9         TestEnum::Arm1() => {}
10         TestEnum::Arm2 => {}
11     }
12 }