diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/rustfmt/tests/target/match-flattening.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/match-flattening.rs b/src/tools/rustfmt/tests/target/match-flattening.rs new file mode 100644 index 000000000..f246952a0 --- /dev/null +++ b/src/tools/rustfmt/tests/target/match-flattening.rs @@ -0,0 +1,23 @@ +fn main() { + match option { + None => { + if condition { + true + } else { + false + } + } + } +} + +fn main() { + match option { + None => { + if condition { + true + } else { + false + } + } + } +} |