mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
73b38c661d
Instead we re-use the static's alloc id within the interpreter for its initializer to refer to the `Allocation` that only exists within the interpreter.
16 lines
572 B
Plaintext
16 lines
572 B
Plaintext
error[E0080]: could not evaluate static initializer
|
|
--> $DIR/recursive-static-definition.rs:1:23
|
|
|
|
|
LL | pub static FOO: u32 = FOO;
|
|
| ^^^ encountered static that tried to initialize itself with itself
|
|
|
|
error[E0080]: could not evaluate static initializer
|
|
--> $DIR/recursive-static-definition.rs:9:23
|
|
|
|
|
LL | pub static BAR: Foo = BAR;
|
|
| ^^^ encountered static that tried to initialize itself with itself
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|