]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/struct_lits.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / struct_lits.rs
index e0b291841627455c3cb84d9e8846625e7ea30b28..a08222f8f135fda5ec297e20d7235e6332a453d2 100644 (file)
@@ -25,7 +25,7 @@ fn main() {
         // Comment
         a: foo(), // Comment
         // Comment
-        b: bar(), /* Comment */
+        b: bar(), // Comment
     };
 
     Foo { a: Bar, b: f() };
@@ -132,3 +132,20 @@ fn issue123() {
         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,
+    };
+}