Skip to content

Commit 31ce8ee

Browse files
committed
Add test for issue 2644
1 parent 9b36156 commit 31ce8ee

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/source/issue-2644.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// rustfmt-max_width: 80
2+
fn foo(e: Enum) {
3+
match e {
4+
Enum::Var {
5+
element1,
6+
element2,
7+
} => {
8+
return;
9+
}
10+
}
11+
}

tests/target/issue-2644.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// rustfmt-max_width: 80
2+
fn foo(e: Enum) {
3+
match e {
4+
Enum::Var { element1, element2 } => {
5+
return;
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)