]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/escape_analysis.rs
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
[rust.git] / tests / ui / escape_analysis.rs
index d26f48fc68f85ebe4ebd07a4027c81539e311dad..13e2b6c7a2e765a5a3d7269504368b6bc3bf8db0 100644 (file)
@@ -101,7 +101,7 @@ fn warn_match() {
     let x = box A;
     match &x {
         // not moved
-        ref y => (),
+        y => (),
     }
 }
 
@@ -111,7 +111,7 @@ fn nowarn_large_array() {
     let x = box [1; 10000];
     match &x {
         // not moved
-        ref y => (),
+        y => (),
     }
 }