mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
16 lines
422 B
Rust
16 lines
422 B
Rust
|
// rustfmt-wrap_match_arms: false
|
||
|
// 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),
|
||
|
}
|
||
|
}
|