mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
17 lines
410 B
Rust
17 lines
410 B
Rust
// 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"
|
|
},
|
|
b => (
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
|
|
),
|
|
}
|
|
}
|