]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/match-nowrap-trailing-comma.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / target / match-nowrap-trailing-comma.rs
CommitLineData
f20569fa
XL
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
6fn foo() {
7 match x {
8 a => {
9 "line1";
10 "line2"
11 },
12 b => (
13 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
14 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
15 ),
16 }
17}