]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/swap.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / swap.rs
index e9f227d47a0708309c652acfc2492ae3d7b62a6a..20fa9c8757446fbdcde382e129cd6d68318703cf 100644 (file)
@@ -39,6 +39,7 @@ fn vec() {
     foo.swap(0, 1);
 }
 
+#[rustfmt::skip]
 fn main() {
     array();
     slice();
@@ -50,7 +51,7 @@ fn main() {
     a = b;
     b = a;
 
-;    let t = a;
+    ; let t = a;
     a = b;
     b = t;
 
@@ -59,7 +60,7 @@ fn main() {
     c.0 = a;
     a = c.0;
 
-;    let t = c.0;
+    ; let t = c.0;
     c.0 = a;
     a = t;
 }