56469a8745
* Don't drop opening brace on long line matches. Fixes #1225 * Added a test case for long match arms with braces on newline.
15 lines
298 B
Rust
15 lines
298 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),
|
|
}
|
|
}
|