]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | // rustfmt-control_brace_style: AlwaysNextLine |
2 | ||
3 | fn main() { | |
4 | if false | |
5 | { | |
6 | (); | |
7 | (); | |
8 | } | |
9 | ||
10 | if false | |
11 | // lone if comment | |
12 | { | |
13 | (); | |
14 | (); | |
15 | } | |
16 | ||
17 | let a = if 0 > 1 { unreachable!() } else { 0x0 }; | |
18 | ||
19 | if true | |
20 | { | |
21 | (); | |
22 | } | |
23 | else if false | |
24 | { | |
25 | (); | |
26 | (); | |
27 | } | |
28 | else | |
29 | { | |
30 | (); | |
31 | (); | |
32 | (); | |
33 | } | |
34 | ||
35 | if true | |
36 | // else-if-chain if comment | |
37 | { | |
38 | (); | |
39 | } | |
40 | else if false | |
41 | // else-if-chain else-if comment | |
42 | { | |
43 | (); | |
44 | (); | |
45 | } | |
46 | else | |
47 | // else-if-chain else comment | |
48 | { | |
49 | (); | |
50 | (); | |
51 | (); | |
52 | } | |
53 | } |