summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-2445.rs
blob: 84ce6e647b83c876590cdeab8d8f7f4b42cf09ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
test!(RunPassPretty {
            // comment
    path: "src/test/run-pass/pretty",
    mode: "pretty",
    suite: "run-pass",
    default: false,
    host: true  // should, force, , no trailing comma here
});

test!(RunPassPretty {
            // comment
    path: "src/test/run-pass/pretty",
    mode: "pretty",
    suite: "run-pass",
    default: false,
    host: true,         // should, , preserve, the trailing comma
});

test!(Test{
    field: i32, // comment
});