diff --git a/tests/source/issue-2496.rs b/tests/source/issue-2496.rs new file mode 100644 index 000000000000..0ebd4b510ece --- /dev/null +++ b/tests/source/issue-2496.rs @@ -0,0 +1,16 @@ +// rustfmt-indent_style: Visual +fn main() { + match option { + None => some_function(first_reasonably_long_argument, + second_reasonably_long_argument), + } +} + +fn main() { + match option { + None => { + some_function(first_reasonably_long_argument, + second_reasonably_long_argument) + } + } +} diff --git a/tests/target/issue-2496.rs b/tests/target/issue-2496.rs new file mode 100644 index 000000000000..60c4f55ddffd --- /dev/null +++ b/tests/target/issue-2496.rs @@ -0,0 +1,14 @@ +// rustfmt-indent_style: Visual +fn main() { + match option { + None => some_function(first_reasonably_long_argument, + second_reasonably_long_argument), + } +} + +fn main() { + match option { + None => some_function(first_reasonably_long_argument, + second_reasonably_long_argument), + } +}