summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-2445.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-2445.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-2445.rs21
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
+});