2023-10-12 06:27:43 -05:00
|
|
|
error[E0080]: could not evaluate static initializer
|
2022-06-04 14:48:16 -05:00
|
|
|
--> $DIR/recursive-zst-static.rs:10:18
|
2020-04-23 05:53:05 -05:00
|
|
|
|
|
|
|
|
LL | static FOO: () = FOO;
|
2023-10-12 06:27:43 -05:00
|
|
|
| ^^^ 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;
|
|
|
|
| ^
|
2023-10-10 03:52:21 -05:00
|
|
|
|
|
2023-10-12 06:27:43 -05:00
|
|
|
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
|
2024-02-14 06:28:07 -06:00
|
|
|
= note: cycle used when running analysis passes on this crate
|
2023-07-18 20:53:34 -05:00
|
|
|
= 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
|
2020-04-23 05:53:05 -05:00
|
|
|
|
2023-10-12 06:27:43 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2020-04-23 05:53:05 -05:00
|
|
|
|
2023-10-12 06:27:43 -05:00
|
|
|
Some errors have detailed explanations: E0080, E0391.
|
|
|
|
For more information about an error, try `rustc --explain E0080`.
|