]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2294-if-let-guard/feature-gate.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / rfc-2294-if-let-guard / feature-gate.rs
index c0a9bbc36b24b34c9bcde48b8fa194398e23fa08..4ba7e1eeefaa6bc00e4f59d119c00e5395bb7bed 100644 (file)
@@ -5,8 +5,7 @@ use std::ops::Range;
 fn _if_let_guard() {
     match () {
         () if let 0 = 1 => {}
-        //~^ ERROR `if let` guard is not implemented
-        //~| ERROR `let` expressions are not supported here
+        //~^ ERROR `if let` guards are experimental
 
         () if (let 0 = 1) => {}
         //~^ ERROR `let` expressions in this position are experimental
@@ -75,7 +74,7 @@ fn _macros() {
     match () {
         #[cfg(FALSE)]
         () if let 0 = 1 => {}
-        //~^ ERROR `if let` guard is not implemented
+        //~^ ERROR `if let` guards are experimental
         _ => {}
     }
     use_expr!(let 0 = 1);