summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs')
-rw-r--r--src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs b/src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs
new file mode 100644
index 000000000..aeb384e72
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/long-match-arms-brace-newline.rs
@@ -0,0 +1,15 @@
+// rustfmt-format_strings: true
+// rustfmt-max_width: 80
+// rustfmt-control_brace_style: AlwaysNextLine
+
+fn main() {
+ match x
+ {
+ aaaaaaaa::Bbbbb::Ccccccccccccc(_, Some(ref x))
+ if x == "aaaaaaaaaaa aaaaaaa aaaaaa" =>
+ {
+ Ok(())
+ }
+ _ => Err(x),
+ }
+}