rust/tests/source/match_overflow_expr.rs

54 lines
1.1 KiB
Rust
Raw Normal View History

// rustfmt-overflow_delimited_expr: true
fn main() {
println!(
"Foobar: {}",
match "input" {
"a" => "",
"b" => "",
"c" => "",
"d" => "",
"e" => "",
"f" => "",
"g" => "",
"h" => "",
"i" => "",
"j" => "",
"k" => "",
"l" => "",
"m" => "",
"n" => "",
"o" => "",
"p" => "",
"q" => "",
"r" => "Rust",
}
);
}
fn main() {
println!(
"Very Long Input String Which Makes It Impossible To Fit On The Same Line: {}",
match "input" {
"a" => "",
"b" => "",
"c" => "",
"d" => "",
"e" => "",
"f" => "",
"g" => "",
"h" => "",
"i" => "",
"j" => "",
"k" => "",
"l" => "",
"m" => "",
"n" => "",
"o" => "",
"p" => "",
"q" => "",
"r" => "Rust",
}
);
}