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