Add test for issue 2644

This commit is contained in:
Trevor Spiteri 2018-05-02 10:36:12 +02:00
parent 9b36156020
commit 31ce8ee185
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// rustfmt-max_width: 80
fn foo(e: Enum) {
match e {
Enum::Var {
element1,
element2,
} => {
return;
}
}
}

View File

@ -0,0 +1,8 @@
// rustfmt-max_width: 80
fn foo(e: Enum) {
match e {
Enum::Var { element1, element2 } => {
return;
}
}
}