fork/rust

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

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

master
886 B22 linesraw
1error[E0391]: cycle detected when simplifying constant for the type system `FOO`
2  --> $DIR/issue-17252.rs:1:1
3   |
4LL | const FOO: usize = FOO;
5   | ^^^^^^^^^^^^^^^^
6   |
7note: ...which requires const-evaluating + checking `FOO`...
8  --> $DIR/issue-17252.rs:1:20
9   |
10LL | const FOO: usize = FOO;
11   |                    ^^^
12   = note: ...which again requires simplifying constant for the type system `FOO`, completing the cycle
13note: cycle used when const-evaluating + checking `main::{constant#0}`
14  --> $DIR/issue-17252.rs:4:18
15   |
16LL |     let _x: [u8; FOO]; // caused stack overflow prior to fix
17   |                  ^^^
18   = 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
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0391`.