Add a test for #2496

This commit is contained in:
Ivan Molodetskikh 2018-08-31 17:51:36 +03:00
parent 77824a24ef
commit bc03234e25
No known key found for this signature in database
GPG key ID: 02CE38DA47E9D691
2 changed files with 30 additions and 0 deletions

View file

@ -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)
}
}
}

View file

@ -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),
}
}