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 const-evaluating + checking `Y::A::{constant#0}`...
8 --> $DIR/issue-23302-2.rs:4:9
10 LL | A = Y::B as isize,
12 = note: ...which again requires simplifying constant for the type system `Y::A::{constant#0}`, completing the cycle
13 note: cycle used when simplifying constant for the type system `Y::A::{constant#0}`
14 --> $DIR/issue-23302-2.rs:4:9
16 LL | A = Y::B as isize,
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
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0391`.