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