]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/comment.rs
Tidy up and pass tests
[rust.git] / tests / target / comment.rs
index 2d90d83edb69b65d0e323d3093e4c1951bc697b8..5abf5369066ca4875b3c2a1880745dfab2e16ad9 100644 (file)
@@ -1,12 +1,16 @@
+// rustfmt-normalize_comments: true
 // rustfmt-wrap_comments: true
 
 //! Doc comment
 fn test() {
+    //! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam
+    //! lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam
+
     // comment
     // comment2
 
-    code(); /* leave this comment alone!
-             * ok? */
+    code(); // leave this comment alone!
+            // ok?
 
     // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a
     // diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam
@@ -27,8 +31,15 @@ fn test() {
     //                                       self.config)
     //                           .unwrap());
 
-    funk(); //dontchangeme
+    funk(); // dontchangeme
             // or me
+
+    // #1388
+    const EXCEPTION_PATHS: &'static [&'static str] = &[
+        // std crates
+        "src/libstd/sys/", // Platform-specific code for std lives here.
+        "src/bootstrap",
+    ];
 }
 
 /// test123
@@ -41,3 +52,44 @@ fn chains() {
         x
     })
 }
+
+fn issue_1086() {
+    //
+}
+
+// random comment
+
+fn main() {
+    // Test
+}
+
+// #1643
+fn some_fn() // some comment
+{
+}
+
+fn some_fn1()
+// some comment
+{
+}
+
+fn some_fn2() // some comment
+{
+}
+
+fn some_fn3() // some comment some comment some comment some comment some comment some comment so
+{
+}
+
+fn some_fn4()
+// some comment some comment some comment some comment some comment some comment
+// some comment
+{
+}
+
+// #1603
+pub enum Foo {
+    A, // `/** **/`
+    B, // `/*!`
+    C,
+}