mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
56469a8745
* Don't drop opening brace on long line matches. Fixes #1225 * Added a test case for long match arms with braces on newline.
16 lines
385 B
Rust
16 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),
|
|
}
|
|
}
|