Skip to content

Commit

Permalink
Add a test for #2496
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Sep 11, 2018
1 parent 77824a2 commit bc03234
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 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)
}
}
}
14 changes: 14 additions & 0 deletions 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),
}
}

0 comments on commit bc03234

Please sign in to comment.