mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
54 lines
1.1 KiB
Rust
54 lines
1.1 KiB
Rust
// 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",
|
|
}
|
|
);
|
|
}
|