]> git.lizzy.rs Git - rust.git/blob - tests/source/issue-2445.rs
Prevent duplicate comma when formatting struct pattern with ".."
[rust.git] / tests / source / issue-2445.rs
1 test!(RunPassPretty {
2             // comment
3     path: "src/test/run-pass/pretty",
4     mode: "pretty",
5     suite: "run-pass",
6     default: false,
7     host: true  // should, force, , no trailing comma here
8 });
9
10 test!(RunPassPretty {
11             // comment
12     path: "src/test/run-pass/pretty",
13     mode: "pretty",
14     suite: "run-pass",
15     default: false,
16     host: true,         // should, , preserve, the trailing comma
17 });
18
19 test!(Test{
20     field: i32, // comment
21 });