]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/file-lines-3.rs
Tidy up and pass tests
[rust.git] / tests / target / file-lines-3.rs
index 6652d9c92cd21568908499a0cc66b04e5713eb61..fe465750ae110707075623830e04959001340c5a 100644 (file)
@@ -3,10 +3,9 @@
 
 fn floaters() {
     let x = Foo {
-            field1: val1,
-            field2: val2,
-        }
-        .method_call()
+        field1: val1,
+        field2: val2,
+    }.method_call()
         .method_call();
 
     let y = if cond { val1 } else { val2 }.method_call();
@@ -14,6 +13,7 @@ fn floaters() {
     {
         match x {
             PushParam => {
+                // comment
                 stack.push(mparams[match cur.to_digit(10) {
                                             Some(d) => d as usize - 1,
                                             None => return Err("bad param number".to_owned()),