summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-2445.rs
blob: 463c5d4957686470d7d91bcf10cd6a47a599e2f3 (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: "tests/run-pass/pretty",
    mode: "pretty",
    suite: "run-pass",
    default: false,
    host: true // should, force, , no trailing comma here
});

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

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