]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/match-nowrap.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / tools / rustfmt / tests / target / match-nowrap.rs
1 // rustfmt-match_arm_blocks: false
2 // Match expressions, no unwrapping of block arms or wrapping of multiline
3 // expressions.
4
5 fn foo() {
6     match x {
7         a => foo(),
8         b => (
9             aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
10             bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
11         ),
12     }
13 }