fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
891 B25 linesraw
1error[E0391]: cycle detected when const-evaluating + checking `FOO`
2  --> $DIR/recursive-static-definition.rs:1:1
3   |
4LL | pub static FOO: u32 = FOO;
5   | ^^^^^^^^^^^^^^^^^^^
6   |
7note: ...which requires const-evaluating + checking `FOO`...
8  --> $DIR/recursive-static-definition.rs:1:23
9   |
10LL | pub static FOO: u32 = FOO;
11   |                       ^^^
12   = note: ...which again requires const-evaluating + checking `FOO`, completing the cycle
13note: cycle used when linting top-level module
14  --> $DIR/recursive-static-definition.rs:1:1
15   |
16LL | / pub static FOO: u32 = FOO;
17LL | |
18LL | |
19LL | | fn main() {}
20   | |____________^
21   = 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
22
23error: aborting due to previous error
24
25For more information about this error, try `rustc --explain E0391`.