]> git.lizzy.rs Git - rust.git/blob - tests/target/long-match-arms-brace-newline.rs
Don't drop opening brace on long line matches. (#1228)
[rust.git] / tests / target / 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     {
7         aaaaaaaa::Bbbbb::Ccccccccccccc(_, Some(ref x)) if x ==
8                                                           "aaaaaaaaaaa \
9                                                            aaaaaaa aaaaaa" =>
10         {
11             Ok(())
12         }
13         _ => Err(x),
14     }
15 }