summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs')
-rw-r--r--src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs b/src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs
new file mode 100644
index 000000000..eb9e34059
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/match_arm_blocks/true.rs
@@ -0,0 +1,13 @@
+// rustfmt-match_arm_blocks: true
+// Wrap match-arms
+
+fn main() {
+ match lorem {
+ true => {
+ foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(x)
+ }
+ false => {
+ println!("{}", sit)
+ }
+ }
+}