+// rustfmt-wrap_comments: true
// Struct literal expressions.
fn main() {
// Comment
a: foo(), // Comment
// Comment
- b: bar(), /* Comment */
+ b: bar(), // Comment
};
Foo { a: Bar, b: f() };
b: cccccccccccccccccccccccccccccccccccccc,
};
}
+
+fn issue491() {
+ Foo {
+ guard: None,
+ arm: 0, // Comment
+ };
+
+ Foo { arm: 0 /* Comment */ };
+
+ Foo {
+ a: aaaaaaaaaa,
+ b: bbbbbbbb,
+ c: cccccccccc,
+ d: dddddddddd, // a comment
+ e: eeeeeeeee,
+ };
+}