1 error[E0391]: cycle detected when simplifying constant for the type system `Y::A::{constant#0}`
2 --> $DIR/issue-23302-2.rs:4:9
4 LL | A = Y::B as isize,
7 note: ...which requires simplifying constant for the type system `Y::A::{constant#0}`...
8 --> $DIR/issue-23302-2.rs:4:9
10 LL | A = Y::B as isize,
12 note: ...which requires const-evaluating + checking `Y::A::{constant#0}`...
13 --> $DIR/issue-23302-2.rs:4:9
15 LL | A = Y::B as isize,
17 = note: ...which requires normalizing `Y::B as isize`...
18 = note: ...which again requires simplifying constant for the type system `Y::A::{constant#0}`, completing the cycle
19 note: cycle used when collecting item types in top-level module
20 --> $DIR/issue-23302-2.rs:3:1
25 error: aborting due to previous error
27 For more information about this error, try `rustc --explain E0391`.