]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/match_overflow_expr.rs
:arrow_up: rust-analyzer
[rust.git] / src / tools / rustfmt / tests / target / match_overflow_expr.rs
1 // rustfmt-overflow_delimited_expr: true
2
3 fn main() {
4     println!("Foobar: {}", match "input" {
5         "a" => "",
6         "b" => "",
7         "c" => "",
8         "d" => "",
9         "e" => "",
10         "f" => "",
11         "g" => "",
12         "h" => "",
13         "i" => "",
14         "j" => "",
15         "k" => "",
16         "l" => "",
17         "m" => "",
18         "n" => "",
19         "o" => "",
20         "p" => "",
21         "q" => "",
22         "r" => "Rust",
23     });
24 }
25
26 fn main() {
27     println!(
28         "Very Long Input String Which Makes It Impossible To Fit On The Same Line: {}",
29         match "input" {
30             "a" => "",
31             "b" => "",
32             "c" => "",
33             "d" => "",
34             "e" => "",
35             "f" => "",
36             "g" => "",
37             "h" => "",
38             "i" => "",
39             "j" => "",
40             "k" => "",
41             "l" => "",
42             "m" => "",
43             "n" => "",
44             "o" => "",
45             "p" => "",
46             "q" => "",
47             "r" => "Rust",
48         }
49     );
50 }