]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/assign-to-static-within-other-static.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[rust.git] / src / test / ui / consts / const-eval / assign-to-static-within-other-static.rs
index b4c416b1c55f040e3c921e5540e7c6ccf66abd41..648caae30b4275fdf4dedfeae2a3122d97a759f6 100644 (file)
@@ -7,7 +7,8 @@
 
 static mut FOO: u32 = 42;
 static BOO: () = unsafe {
-    FOO = 5; //~ ERROR cannot mutate statics in the initializer of another static
+    FOO = 5;
+    //~^ could not evaluate static initializer [E0080]
 };
 
 fn main() {}