]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/match-test-ptr-null.rs
Rollup merge of #104076 - ozkanonur:fix-ci-rustc-sysroot, r=jyn514
[rust.git] / src / test / ui / consts / const-eval / match-test-ptr-null.rs
index d980eb92a243e87f47020b8c2997f676d40b3ed3..4af97b5487929ce0184a84d429edaf07a1c20b6f 100644 (file)
@@ -4,7 +4,7 @@ fn main() {
     // bytes.
     let _: [u8; 0] = [4; {
         match &1 as *const i32 as usize {
-            //~^ ERROR casting pointers to integers in constants
+            //~^ ERROR pointers cannot be cast to integers during const eval
             0 => 42,
             n => n,
         }