2023-07-13 02:59:01 +00:00
|
|
|
error[E0391]: cycle detected when const-evaluating + checking `FOO`
|
2022-06-04 19:48:16 +00:00
|
|
|
--> $DIR/recursive-static-definition.rs:1:23
|
2018-08-31 08:40:14 +00:00
|
|
|
|
|
|
|
|
LL | pub static FOO: u32 = FOO;
|
2022-06-04 19:48:16 +00:00
|
|
|
| ^^^
|
2024-01-10 16:54:43 +00:00
|
|
|
|
|
|
|
|
= note: ...which immediately requires const-evaluating + checking `FOO` again
|
2022-06-18 17:48:44 +00: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-19 01:53:34 +00: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 12:28:26 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0391`.
|