blob: 4180bb49339e2ba2d22ac36c0b2a15a92b4b84ad [file] [log] [blame]
error[E0080]: modifying a static's initial value from another static's initializer
--> $DIR/write-to-static-mut-in-static.rs:2:33
|
LL | pub static mut B: () = unsafe { A = 1; };
| ^^^^^ evaluation of `B` failed here
error[E0080]: encountered static that tried to access itself during initialization
--> $DIR/write-to-static-mut-in-static.rs:5:34
|
LL | pub static mut C: u32 = unsafe { C = 1; 0 };
| ^^^^^ evaluation of `C` failed here
error[E0080]: encountered static that tried to access itself during initialization
--> $DIR/write-to-static-mut-in-static.rs:8:21
|
LL | pub static D: u32 = D;
| ^ evaluation of `D` failed here
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0080`.