]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/attrib.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / attrib.rs
index ee7da10081e2b49f8028dbc6f9e7d6bee0ca8566..9317a83706571ad4f12fb86a9afea19ac6cc8dd3 100644 (file)
@@ -1,3 +1,4 @@
+// rustfmt-wrap_comments: true
 // Test attributes and doc comments are preserved.
 
 /// Blah blah blah.
@@ -12,8 +13,7 @@ impl Bar {
     /// Blah blah blooo.
     /// Blah blah blooo.
     #[an_attribute]
-    fn foo(&mut self) -> isize {
-    }
+    fn foo(&mut self) -> isize {}
 
     /// Blah blah bing.
     /// Blah blah bing.
@@ -27,6 +27,14 @@ pub fn f2(self) {
     }
 
     #[another_attribute]
-    fn f3(self) -> Dog {
-    }
+    fn f3(self) -> Dog {}
+
+    /// Blah blah bing.
+    #[attrib1]
+    /// Blah blah bing.
+    #[attrib2]
+    // Another comment that needs rewrite because it's tooooooooooooooooooooooooooooooo
+    // loooooooooooong.
+    /// Blah blah bing.
+    fn f4(self) -> Cat {}
 }