mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
Add test for issue 2644
This commit is contained in:
parent
9b36156020
commit
31ce8ee185
11
tests/source/issue-2644.rs
Normal file
11
tests/source/issue-2644.rs
Normal file
@ -0,0 +1,11 @@
|
||||
// rustfmt-max_width: 80
|
||||
fn foo(e: Enum) {
|
||||
match e {
|
||||
Enum::Var {
|
||||
element1,
|
||||
element2,
|
||||
} => {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
8
tests/target/issue-2644.rs
Normal file
8
tests/target/issue-2644.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// rustfmt-max_width: 80
|
||||
fn foo(e: Enum) {
|
||||
match e {
|
||||
Enum::Var { element1, element2 } => {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user