]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / rfc-2497-if-let-chains / disallowed-positions.rs
index 7d1e5c3d64df3f3989051e920a8b9fab658b85bb..d5756737f1791cd9c88c221ca4f0f0f6b8f4a176 100644 (file)
@@ -216,20 +216,17 @@ fn inside_const_generic_arguments() {
 
     if let A::<{
         true && let 1 = 1 //~ ERROR `let` expressions are not supported here
-        //~^ ERROR constant contains unimplemented expression type
-        //~| ERROR constant contains unimplemented expression type
+        //~| ERROR `match` is not allowed in a `const`
     }>::O = 5 {}
 
     while let A::<{
         true && let 1 = 1 //~ ERROR `let` expressions are not supported here
-        //~^ ERROR constant contains unimplemented expression type
-        //~| ERROR constant contains unimplemented expression type
+        //~| ERROR `match` is not allowed in a `const`
     }>::O = 5 {}
 
     if A::<{
         true && let 1 = 1 //~ ERROR `let` expressions are not supported here
-        //~^ ERROR constant contains unimplemented expression type
-        //~| ERROR constant contains unimplemented expression type
+        //~| ERROR `match` is not allowed in a `const`
     }>::O == 5 {}
 
     // In the cases above we have `ExprKind::Block` to help us out.