about summary refs log tree commit diff
path: root/tests/ui/consts/write-to-static-mut-in-static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/write-to-static-mut-in-static.rs')
-rw-r--r--tests/ui/consts/write-to-static-mut-in-static.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/consts/write-to-static-mut-in-static.rs b/tests/ui/consts/write-to-static-mut-in-static.rs
index ce15d9e912b..016bfb06ccf 100644
--- a/tests/ui/consts/write-to-static-mut-in-static.rs
+++ b/tests/ui/consts/write-to-static-mut-in-static.rs
@@ -3,8 +3,9 @@ pub static mut B: () = unsafe { A = 1; };
 //~^ ERROR modifying a static's initial value
 
 pub static mut C: u32 = unsafe { C = 1; 0 };
+//~^ ERROR static that tried to access itself during initialization
 
 pub static D: u32 = D;
-//~^ ERROR static that tried to initialize itself with itself
+//~^ ERROR static that tried to access itself during initialization
 
 fn main() {}