about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/assign-to-static-within-other-static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-eval/assign-to-static-within-other-static.rs')
-rw-r--r--tests/ui/consts/const-eval/assign-to-static-within-other-static.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/const-eval/assign-to-static-within-other-static.rs b/tests/ui/consts/const-eval/assign-to-static-within-other-static.rs
index 30e40bd8be1..7a7a2566940 100644
--- a/tests/ui/consts/const-eval/assign-to-static-within-other-static.rs
+++ b/tests/ui/consts/const-eval/assign-to-static-within-other-static.rs
@@ -6,7 +6,7 @@ use std::cell::UnsafeCell;
 static mut FOO: u32 = 42;
 static BOO: () = unsafe {
     FOO = 5;
-    //~^ ERROR could not evaluate static initializer [E0080]
+    //~^ ERROR modifying a static's initial value
 };
 
 fn main() {}