summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-5042/multi-line_comment_with_trailing_comma.rs
blob: 5d171f32a1aea10b1bfdd19915f44690df52eab1 (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
fn main() {
    // 5042 deals with trailing commas, not the indentation issue of these comments
    // When a future PR fixes the inentation issues these test can be updated
    let _ = std::ops::Add::add(10, 20
        // ...
        // ...,
        );

    let _ = std::ops::Add::add(10, 20
        /* ... */
        // ...,
        );

    let _ = std::ops::Add::add(10, 20
        // ...,
        // ...,
        );

    let _ = std::ops::Add::add(10, 20
        // ...,
        /* ...
        */,
        );
}