summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/match-nowrap.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/match-nowrap.rs')
-rw-r--r--src/tools/rustfmt/tests/source/match-nowrap.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/match-nowrap.rs b/src/tools/rustfmt/tests/source/match-nowrap.rs
new file mode 100644
index 000000000..db22cd9f0
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/match-nowrap.rs
@@ -0,0 +1,12 @@
+// rustfmt-match_arm_blocks: false
+// Match expressions, no unwrapping of block arms or wrapping of multiline
+// expressions.
+
+fn foo() {
+ match x {
+ a => { foo() }
+ b =>
+ (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
+ bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb),
+ }
+}