summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/match-nowrap.rs
blob: 9e674b1e2f5403eebb6273bab8bfb1d1cb9e61f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// rustfmt-match_arm_blocks: false
// Match expressions, no unwrapping of block arms or wrapping of multiline
// expressions.

fn foo() {
    match x {
        a => foo(),
        b => (
            aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
            bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
        ),
    }
}