fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when simplifying constant for the type system `Foo::B::{constant#0}` 2 --> $DIR/issue-36163.rs:4:9 3 | 4LL | B = A, 5 | ^ 6 | 7note: ...which requires const-evaluating + checking `Foo::B::{constant#0}`... 8 --> $DIR/issue-36163.rs:4:9 9 | 10LL | B = A, 11 | ^ 12note: ...which requires simplifying constant for the type system `A`... 13 --> $DIR/issue-36163.rs:1:1 14 | 15LL | const A: isize = Foo::B as isize; 16 | ^^^^^^^^^^^^^^ 17note: ...which requires const-evaluating + checking `A`... 18 --> $DIR/issue-36163.rs:1:18 19 | 20LL | const A: isize = Foo::B as isize; 21 | ^^^^^^^^^^^^^^^ 22 = note: ...which again requires simplifying constant for the type system `Foo::B::{constant#0}`, completing the cycle 23note: cycle used when simplifying constant for the type system `Foo::B::{constant#0}` 24 --> $DIR/issue-36163.rs:4:9 25 | 26LL | B = A, 27 | ^ 28 = 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 29 30error: aborting due to previous error 31 32For more information about this error, try `rustc --explain E0391`.