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