mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
25 lines
1,008 B
Text
25 lines
1,008 B
Text
error[E0080]: could not evaluate static initializer
|
|
--> $DIR/recursive-zst-static.rs:10:18
|
|
|
|
|
LL | static FOO: () = FOO;
|
|
| ^^^ encountered static that tried to initialize itself with itself
|
|
|
|
error[E0391]: cycle detected when evaluating initializer of static `A`
|
|
--> $DIR/recursive-zst-static.rs:13:16
|
|
|
|
|
LL | static A: () = B;
|
|
| ^
|
|
|
|
|
note: ...which requires evaluating initializer of static `B`...
|
|
--> $DIR/recursive-zst-static.rs:14:16
|
|
|
|
|
LL | static B: () = A;
|
|
| ^
|
|
= note: ...which again requires evaluating initializer of static `A`, completing the cycle
|
|
= note: cycle used when running analysis passes on this crate
|
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0080, E0391.
|
|
For more information about an error, try `rustc --explain E0080`.
|