diff options
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-2445.rs')
-rw-r--r-- | src/tools/rustfmt/tests/target/issue-2445.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-2445.rs b/src/tools/rustfmt/tests/target/issue-2445.rs new file mode 100644 index 000000000..1bc7752fd --- /dev/null +++ b/src/tools/rustfmt/tests/target/issue-2445.rs @@ -0,0 +1,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 +}); |