]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-20261.rs
Stabilize match_default_bindings
[rust.git] / src / test / compile-fail / issue-20261.rs
index 092aaa769550538ad296bc2e50b2012754d3bad8..bb4dbdcd0cba7793b892ab29c586720df444f3e1 100644 (file)
@@ -11,7 +11,7 @@
 fn main() {
     // NB: this (almost) typechecks when default binding modes are enabled.
     for (ref i,) in [].iter() {
-        //~^ ERROR non-reference pattern used to match a reference
         i.clone();
+        //~^ ERROR type annotations needed
     }
 }