summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-1021.rs
blob: ba1029d4e61e2fe9f85ff9e5e474426bf2c8616e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// rustfmt-normalize_comments: true
fn main() {
    match x {
        S(true, .., true) => (),
        S(true, ..) => (),
        S(.., true) => (),
        S(..) => (),
        S(_) => (),
        S(/* .. */ ..) => (),
        S(/* .. */ .., true) => (),
    }

    match y {
        (true, .., true) => (),
        (true, ..) => (),
        (.., true) => (),
        (..) => (),
        (_,) => (),
        (/* .. */ ..) => (),
        (/* .. */ .., true) => (),
    }
}