]> git.lizzy.rs Git - rust.git/blob - tests/target/match-block-trailing-comma.rs
Tidy up and pass tests
[rust.git] / tests / target / match-block-trailing-comma.rs
1 // rustfmt-match_block_trailing_comma: true
2 // Match expressions, no unwrapping of block arms or wrapping of multiline
3 // expressions.
4
5 fn foo() {
6     match x {
7         a => {
8             "line1";
9             "line2"
10         },
11         b => (
12             aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
13             bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
14         ),
15     }
16 }