]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/fn-simple.rs
Tidy up and pass tests
[rust.git] / tests / target / fn-simple.rs
index e150973a67d03fbfcb5d279278a28ddcf5a4ec83..4e6e649383559a02f2defadeb0002ffe8f3b4459 100644 (file)
@@ -18,18 +18,13 @@ fn op(
     "cool"
 }
 
-
 fn weird_comment(
     // /*/ double level */ comment
-    x: Hello, // /*/* tripple, even */*/
+    x: Hello, // /*/* triple, even */*/
     // Does this work?
     y: World,
 ) {
-    simple(
-        // does this preserve comments now?
-        42,
-        NoWay,
-    )
+    simple(/* does this preserve comments now? */ 42, NoWay)
 }
 
 fn generic<T>(arg: T) -> &SomeType
@@ -42,7 +37,7 @@ fn generic<T>(arg: T) -> &SomeType
         C,
         D,
         // pre comment
-        E, /* last comment */
+        E, // last comment
     ) -> &SomeType,
 {
     arg(a, b, c, d, e)
@@ -96,5 +91,17 @@ pub fn waltz(cwd: &Path) -> CliAssert {
                 rewrite_comment(comment, block_style, width, offset, formatting_fig);
         }
     }
+}
 
+// #2003
+mod foo {
+    fn __bindgen_test_layout_i_open0_c_open1_char_a_open2_char_close2_close1_close0_instantiation()
+    {
+        foo();
+    }
 }
+
+// #2082
+pub(crate) fn init() {}
+
+crate fn init() {}