mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
51 lines
1.0 KiB
Rust
51 lines
1.0 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",
|
|
}
|
|
);
|
|
}
|