summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-447.rs
blob: d41cdb65cd0a94dc8b4a955a2da5cb72a45882d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// rustfmt-normalize_comments: true

fn main() {
    if
    // shouldn't be dropped
    // shouldn't be dropped
    cond
    // shouldn't be dropped
    // shouldn't be dropped
    {
    }
    // shouldn't be dropped
    // shouldn't be dropped
    else
    // shouldn't be dropped
    // shouldn't be dropped
    if
    // shouldn't be dropped
    // shouldn't be dropped
    cond
    // shouldn't be dropped
    // shouldn't be dropped
    {
    }
    // shouldn't be dropped
    // shouldn't be dropped
    else
    // shouldn't be dropped
    // shouldn't be dropped
    {
    }

    if
    // shouldn't be dropped
    // shouldn't be dropped
    let Some(x) = y
    // shouldn't be dropped
    // shouldn't be dropped
    {}
}