]> git.lizzy.rs Git - rust.git/blob - tests/source/long-match-arms-brace-newline.rs
Don't drop opening brace on long line matches. (#1228)
[rust.git] / tests / source / long-match-arms-brace-newline.rs
1 // rustfmt-max_width: 80
2 // rustfmt-control_brace_style: AlwaysNextLine
3
4 fn main() {
5     match x {
6         aaaaaaaa::Bbbbb::Ccccccccccccc(_, Some(ref x)) if x ==
7             "aaaaaaaaaaa \
8             aaaaaaa \
9             aaaaaa" => {
10             Ok(())
11         }
12             _ => Err(x),
13     }
14 }