2023-10-09 08:02:46 +00:00
|
|
|
error[E0391]: cycle detected when evaluating initializer of static `FOO`
|
2022-06-04 15:48:16 -04:00
|
|
|
--> $DIR/recursive-static-definition.rs:1:23
|
2018-08-31 10:40:14 +02:00
|
|
|
|
|
|
|
|
|
LL | pub static FOO: u32 = FOO;
|
2022-06-04 15:48:16 -04:00
|
|
|
| ^^^
|
2023-10-10 08:52:21 +00:00
|
|
|
|
|
|
|
|
|
= note: ...which immediately requires evaluating initializer of static `FOO` again
|
2022-06-18 19:48:44 +02:00
|
|
|
note: cycle used when linting top-level module
|
|
|
|
|
--> $DIR/recursive-static-definition.rs:1:1
|
|
|
|
|
|
|
|
|
|
|
LL | / pub static FOO: u32 = FOO;
|
|
|
|
|
LL | |
|
|
|
|
|
LL | |
|
|
|
|
|
LL | | fn main() {}
|
|
|
|
|
| |____________^
|
2023-07-18 21:53:34 -04: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
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0391`.
|