]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/match-nowrap.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[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 }