]> git.lizzy.rs Git - rust.git/blob - tests/target/else-if-brace-style-closing-next-line.rs
Cargo fmt and update tests
[rust.git] / tests / target / else-if-brace-style-closing-next-line.rs
1 // rustfmt-control_brace_style: ClosingNextLine
2
3 fn main() {
4     if false {
5         ();
6         ();
7     }
8
9     if false
10     // lone if comment
11     {
12         ();
13         ();
14     }
15
16     let a = if 0 > 1 { unreachable!() } else { 0x0 };
17
18     if true {
19         ();
20     }
21     else if false {
22         ();
23         ();
24     }
25     else {
26         ();
27         ();
28         ();
29     }
30
31     if true
32     // else-if-chain if comment
33     {
34         ();
35     }
36     else if false
37     // else-if-chain else-if comment
38     {
39         ();
40         ();
41     }
42     else
43     // else-if-chain else comment
44     {
45         ();
46         ();
47         ();
48     }
49 }