rust/tests/target/issue-2445.rs
moe a2f861730e fix adds a trailing comma to struct-like macro (#2490)
* fix adds a trailing comma to struct-like macro
2018-03-08 18:05:39 +09:00

21 lines
446 B
Rust

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
});