]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/match-test-ptr-null.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / match-test-ptr-null.rs
index 5b89b0262aca5ce48b435d371e0f2d897baf248b..80494d1662987e98efbf5bf12896aeafe35a5887 100644 (file)
@@ -5,9 +5,9 @@ fn main() {
     let _: [u8; 0] = [4; {
         match &1 as *const i32 as usize {
             //~^ ERROR casting pointers to integers in constants
-            //~| ERROR constant contains unimplemented expression type
+            //~| ERROR `match` is not allowed in a `const`
             //~| ERROR evaluation of constant value failed
-            0 => 42, //~ ERROR constant contains unimplemented expression type
+            0 => 42,
             n => n,
         }
     }];