]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / const_raw_ptr_ops2.rs
index c3f8b9f31ea8df46dbff623db18c6c1b74e902d9..ec5508a1e90c9e30f4bd7a991bd206bbe20b6c0f 100644 (file)
@@ -5,6 +5,6 @@ const Z: i32 = unsafe { *(&1 as *const i32) };
 
 // bad, will thus error in miri
 const Z2: i32 = unsafe { *(42 as *const i32) }; //~ ERROR evaluation of constant value failed
-//~| is not a valid pointer
+//~| is a dangling pointer
 const Z3: i32 = unsafe { *(44 as *const i32) }; //~ ERROR evaluation of constant value failed
-//~| is not a valid pointer
+//~| is a dangling pointer