Add a test for #2496
This commit is contained in:
parent
77824a24ef
commit
bc03234e25
2 changed files with 30 additions and 0 deletions
16
tests/source/issue-2496.rs
Normal file
16
tests/source/issue-2496.rs
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
14
tests/target/issue-2496.rs
Normal file
14
tests/target/issue-2496.rs
Normal 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),
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue