rust/tests/target/long-match-arms-brace-newline.rs
Luke Clifton 56469a8745 Don't drop opening brace on long line matches. (#1228)
* Don't drop opening brace on long line matches.

Fixes #1225

* Added a test case for long match arms with braces on newline.
2016-11-28 13:47:38 +13:00

15 lines
385 B
Rust

// 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),
}
}