fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when simplifying constant for the type system `A` 2 --> $DIR/issue-23302-3.rs:1:1 3 | 4LL | const A: i32 = B; 5 | ^^^^^^^^^^^^ 6 | 7note: ...which requires const-evaluating + checking `A`... 8 --> $DIR/issue-23302-3.rs:1:16 9 | 10LL | const A: i32 = B; 11 | ^ 12note: ...which requires simplifying constant for the type system `B`... 13 --> $DIR/issue-23302-3.rs:3:1 14 | 15LL | const B: i32 = A; 16 | ^^^^^^^^^^^^ 17note: ...which requires const-evaluating + checking `B`... 18 --> $DIR/issue-23302-3.rs:3:16 19 | 20LL | const B: i32 = A; 21 | ^ 22 = note: ...which again requires simplifying constant for the type system `A`, completing the cycle 23note: cycle used when simplifying constant for the type system `A` 24 --> $DIR/issue-23302-3.rs:1:1 25 | 26LL | const A: i32 = B; 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`.