]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/issue-17458.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / consts / issue-17458.rs
index d56ffebad7d5aeb339713ebdd6845c376702050d..44125a1c3df8d64302f9688a81883083c73873da 100644 (file)
@@ -1,5 +1,5 @@
 static X: usize = unsafe { core::ptr::null::<usize>() as usize };
-//~^ ERROR: casting pointers to integers in statics is unstable
+//~^ ERROR: pointers cannot be cast to integers during const eval
 
 fn main() {
     assert_eq!(X, 0);