2015-11-30 02:51:20 -06:00
|
|
|
// rustfmt-match_block_trailing_comma: true
|
|
|
|
// Match expressions, no unwrapping of block arms or wrapping of multiline
|
|
|
|
// expressions.
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
match x {
|
|
|
|
a => {
|
|
|
|
"line1";
|
|
|
|
"line2"
|
|
|
|
}
|
2021-09-15 10:58:23 -05:00
|
|
|
ThisIsA::Guard if true => {
|
|
|
|
"line1";
|
|
|
|
"line2"
|
|
|
|
}
|
|
|
|
ThisIsA::ReallyLongPattern(ThatWillForce::TheGuard, ToWrapOnto::TheFollowingLine) if true => {
|
|
|
|
"line1";
|
|
|
|
"line2"
|
|
|
|
}
|
2015-12-01 01:10:57 -06:00
|
|
|
b => (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb),
|
2015-11-30 02:51:20 -06:00
|
|
|
}
|
|
|
|
}
|