]> git.lizzy.rs Git - rust.git/blob - tests/target/issue-447.rs
Handle more possible comment position for if else
[rust.git] / tests / target / issue-447.rs
1 fn main() {
2     if
3     // shouldn't be dropped
4     // shouldn't be dropped
5     cond
6     // shouldn't be dropped
7     // shouldn't be dropped
8     {
9     }
10     // shouldn't be dropped
11     // shouldn't be dropped
12     else
13     // shouldn't be dropped
14     // shouldn't be dropped
15     if
16     // shouldn't be dropped
17     // shouldn't be dropped
18     cond
19     // shouldn't be dropped
20     // shouldn't be dropped
21     {
22     }
23     // shouldn't be dropped
24     // shouldn't be dropped
25     else
26     // shouldn't be dropped
27     // shouldn't be dropped
28     {
29     }
30
31     if
32     // shouldn't be dropped
33     // shouldn't be dropped
34     let Some(x) = y
35     // shouldn't be dropped
36     // shouldn't be dropped
37     {
38     }
39 }