rust/tests/target/match_overflow_expr.rs

51 lines
1.0 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",
}
);
}