1 error[E0391]: cycle detected when const-evaluating + checking `Foo::B::{constant#0}`
2 --> $DIR/issue-36163.rs:4:9
7 note: ...which requires const-evaluating + checking `A`...
8 --> $DIR/issue-36163.rs:1:18
10 LL | const A: isize = Foo::B as isize;
12 = note: ...which again requires const-evaluating + checking `Foo::B::{constant#0}`, completing the cycle
13 note: cycle used when simplifying constant for the type system `Foo::B::{constant#0}`
14 --> $DIR/issue-36163.rs:4:9
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0391`.