]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/comment.rs
Tidy up and pass tests
[rust.git] / tests / target / comment.rs
index a50c147de30d4801ec78572c21fe3347c566cad1..5abf5369066ca4875b3c2a1880745dfab2e16ad9 100644 (file)
@@ -9,9 +9,8 @@ fn test() {
     // comment
     // comment2
 
-    // FIXME(1275)
     code(); // leave this comment alone!
-    // ok?
+            // ok?
 
     // Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a
     // diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam
@@ -33,15 +32,14 @@ fn test() {
     //                           .unwrap());
 
     funk(); // dontchangeme
-    // or me
+            // or me
 
     // #1388
-    const EXCEPTION_PATHS: &'static [&'static str] =
-        &[
-            // std crates
-            "src/libstd/sys/", // Platform-specific code for std lives here.
-            "src/bootstrap",
-        ];
+    const EXCEPTION_PATHS: &'static [&'static str] = &[
+        // std crates
+        "src/libstd/sys/", // Platform-specific code for std lives here.
+        "src/bootstrap",
+    ];
 }
 
 /// test123
@@ -64,3 +62,34 @@ fn issue_1086() {
 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,
+}