2025-05-28 10:29:08 +00:00
|
|
|
error[E0080]: modifying a static's initial value from another static's initializer
|
2018-12-28 20:05:22 +01:00
|
|
|
--> $DIR/write-to-static-mut-in-static.rs:2:33
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | pub static mut B: () = unsafe { A = 1; };
|
2025-06-07 11:32:09 +02:00
|
|
|
| ^^^^^ evaluation of `B` failed here
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2025-06-27 12:47:47 +02:00
|
|
|
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
|
2022-06-18 19:48:44 +02:00
|
|
|
|
|
2023-10-12 11:27:43 +00:00
|
|
|
LL | pub static D: u32 = D;
|
2025-06-07 11:32:09 +02:00
|
|
|
| ^ evaluation of `D` failed here
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2025-06-27 12:47:47 +02:00
|
|
|
error: aborting due to 3 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-10-12 11:27:43 +00:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|