Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bc03234

Browse files
committed
Add a test for rust-lang#2496
1 parent 77824a2 commit bc03234

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

tests/source/issue-2496.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// rustfmt-indent_style: Visual
2+
fn main() {
3+
match option {
4+
None => some_function(first_reasonably_long_argument,
5+
second_reasonably_long_argument),
6+
}
7+
}
8+
9+
fn main() {
10+
match option {
11+
None => {
12+
some_function(first_reasonably_long_argument,
13+
second_reasonably_long_argument)
14+
}
15+
}
16+
}

tests/target/issue-2496.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// rustfmt-indent_style: Visual
2+
fn main() {
3+
match option {
4+
None => some_function(first_reasonably_long_argument,
5+
second_reasonably_long_argument),
6+
}
7+
}
8+
9+
fn main() {
10+
match option {
11+
None => some_function(first_reasonably_long_argument,
12+
second_reasonably_long_argument),
13+
}
14+
}

0 commit comments

Comments
 (0)