]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/issue-17458.rs
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.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);