]> git.lizzy.rs Git - rust.git/commitdiff
bless you
authorRalf Jung <post@ralfj.de>
Sat, 21 Mar 2020 22:20:43 +0000 (23:20 +0100)
committerRalf Jung <post@ralfj.de>
Tue, 24 Mar 2020 07:27:46 +0000 (08:27 +0100)
src/test/ui/write-to-static-mut-in-static.stderr

index 4349f6e89c1195e26537a70125c1b2a7934585a5..6c2bd13d433ad7f99ad93a8f72ca141130d79037 100644 (file)
@@ -2,7 +2,7 @@ error[E0080]: could not evaluate static initializer
   --> $DIR/write-to-static-mut-in-static.rs:2:33
    |
 LL | pub static mut B: () = unsafe { A = 1; };
-   |                                 ^^^^^ tried to modify a static's initial value from another static's initializer
+   |                                 ^^^^^ modifying a static's initial value from another static's initializer
 
 error[E0391]: cycle detected when const-evaluating `C`
   --> $DIR/write-to-static-mut-in-static.rs:5:34