Files
rust/tests/ui/consts/write-to-static-mut-in-static.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
853 B
Plaintext
Raw Normal View History

error[E0080]: modifying a static's initial value from another static's initializer
--> $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; };
| ^^^^^ evaluation of `B` failed here
2018-08-08 14:28:26 +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
|
LL | pub static D: u32 = D;
| ^ evaluation of `D` failed here
2018-08-08 14:28:26 +02:00
error: aborting due to 3 previous errors
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0080`.