fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0391]: cycle detected when const checking `Foo::B::{{constant}}#0` 2 --> $DIR/issue-36163.rs:4:9 3 | 4LL | B = A, 5 | ^ 6 | 7note: ...which requires const checking `A`... 8 --> $DIR/issue-36163.rs:1:18 9 | 10LL | const A: isize = Foo::B as isize; 11 | ^^^^^^^^^^^^^^^ 12 = note: ...which again requires const checking `Foo::B::{{constant}}#0`, completing the cycle 13note: cycle used when processing `Foo::B::{{constant}}#0` 14 --> $DIR/issue-36163.rs:4:9 15 | 16LL | B = A, 17 | ^ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0391`.