summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-1021.rs
blob: 380e24cc0b02365c14ee2dfa23158f1862f522ae (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 ) => (),
    }
}