blob: fe1433b05c2983e191a23cd660128b222e5a3a2b [file]
error[E0080]: encountered static that tried to access itself during initialization
--> $DIR/recursive-static-write.rs:13:9
|
LL | static S: Foo = Foo {
...
LL | (&raw const S.x).cast_mut().write(1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `S` failed here
error[E0080]: encountered static that tried to access itself during initialization
--> $DIR/recursive-static-write.rs:20:9
|
LL | static mut S2: Foo = Foo {
...
LL | S2.x = 1;
| ^^^^^^^^ evaluation of `S2` failed here
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0080`.