summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/long-match-arms-brace-newline.rs
blob: 927ada0ffb2e0d5ce3a06d4a67cb40eb50c8e9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// rustfmt-format_strings: true
// rustfmt-max_width: 80
// rustfmt-control_brace_style: AlwaysNextLine

fn main() {
    match x {
        aaaaaaaa::Bbbbb::Ccccccccccccc(_, Some(ref x)) if x ==
            "aaaaaaaaaaa \
            aaaaaaa \
            aaaaaa" => {
            Ok(())
        }
            _ => Err(x),
    }
}