]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/match-nowrap-trailing-comma.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / match-nowrap-trailing-comma.rs
1 // rustfmt-match_arm_blocks: false
2 // rustfmt-match_block_trailing_comma: true
3 // Match expressions, no unwrapping of block arms or wrapping of multiline
4 // expressions.
5
6 fn foo() {
7     match x {
8         a => {
9             "line1";
10             "line2"
11         },
12         b => (
13             aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
14             bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
15         ),
16     }
17 }