1 error[E0391]: cycle detected when simplifying constant for the type system `Foo::B::{constant#0}`
2 --> $DIR/issue-36163.rs:4:9
7 note: ...which requires simplifying constant for the type system `Foo::B::{constant#0}`...
8 --> $DIR/issue-36163.rs:4:9
12 note: ...which requires const-evaluating + checking `Foo::B::{constant#0}`...
13 --> $DIR/issue-36163.rs:4:9
17 = note: ...which requires normalizing `A`...
18 note: ...which requires simplifying constant for the type system `A`...
19 --> $DIR/issue-36163.rs:1:1
21 LL | const A: isize = Foo::B as isize;
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 note: ...which requires simplifying constant for the type system `A`...
24 --> $DIR/issue-36163.rs:1:1
26 LL | const A: isize = Foo::B as isize;
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 note: ...which requires const-evaluating + checking `A`...
29 --> $DIR/issue-36163.rs:1:1
31 LL | const A: isize = Foo::B as isize;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 = note: ...which requires normalizing `A`...
34 = note: ...which again requires simplifying constant for the type system `Foo::B::{constant#0}`, completing the cycle
35 note: cycle used when collecting item types in top-level module
36 --> $DIR/issue-36163.rs:1:1
38 LL | / const A: isize = Foo::B as isize;
47 error: aborting due to previous error
49 For more information about this error, try `rustc --explain E0391`.