rust/tests/target/long-match-arms-brace-newline.rs

17 lines
348 B
Rust
Raw Normal View History

2017-01-27 08:11:59 +13:00
// rustfmt-format_strings: true
2017-07-10 16:52:55 +09:00
// rustfmt-force_format_strings: true
// rustfmt-max_width: 80
// rustfmt-control_brace_style: AlwaysNextLine
fn main() {
match x
{
2017-06-13 14:49:47 +12:00
aaaaaaaa::Bbbbb::Ccccccccccccc(_, Some(ref x))
2017-07-20 00:01:38 +09:00
if x == "aaaaaaaaaaa aaaaaaa aaaaaa" =>
{
Ok(())
}
_ => Err(x),
}
}