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