]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/match-nowrap-trailing-comma.rs
Auto merge of #95315 - compiler-errors:pointee-fix, r=pnkfelix
[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 }