]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/E0297.rs
Change for-loop desugar to not borrow the iterator during the loop
[rust.git] / src / test / compile-fail / E0297.rs
index 5792ba06eb0ce3d0c0ac18869c51ec4a943734f1..436e4c1f9d22e6b5c047e4e08046f0fdfddc9293 100644 (file)
@@ -12,6 +12,6 @@ fn main() {
     let xs : Vec<Option<i32>> = vec![Some(1), None];
 
     for Some(x) in xs {}
-    //~^ ERROR E0297
+    //~^ ERROR E0005
     //~| NOTE pattern `None` not covered
 }