]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0391]: cycle detected when simplifying constant for the type system `A` |
f9f354fc | 2 | --> $DIR/issue-23302-3.rs:1:1 |
0531ce1d | 3 | | |
532ac7d7 | 4 | LL | const A: i32 = B; |
f9f354fc | 5 | | ^^^^^^^^^^^^^^^^^ |
0531ce1d | 6 | | |
1b1a35ee | 7 | note: ...which requires simplifying constant for the type system `A`... |
f9f354fc | 8 | --> $DIR/issue-23302-3.rs:1:1 |
83c7162d | 9 | | |
f9f354fc XL |
10 | LL | const A: i32 = B; |
11 | | ^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 12 | note: ...which requires const-evaluating + checking `A`... |
e74abb32 XL |
13 | --> $DIR/issue-23302-3.rs:1:1 |
14 | | | |
15 | LL | const A: i32 = B; | |
16 | | ^^^^^^^^^^^^^^^^^ | |
f9f354fc | 17 | = note: ...which requires normalizing `B`... |
1b1a35ee | 18 | note: ...which requires simplifying constant for the type system `B`... |
f9f354fc XL |
19 | --> $DIR/issue-23302-3.rs:3:1 |
20 | | | |
21 | LL | const B: i32 = A; | |
22 | | ^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 23 | note: ...which requires simplifying constant for the type system `B`... |
f9f354fc XL |
24 | --> $DIR/issue-23302-3.rs:3:1 |
25 | | | |
26 | LL | const B: i32 = A; | |
27 | | ^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 28 | note: ...which requires const-evaluating + checking `B`... |
f9f354fc XL |
29 | --> $DIR/issue-23302-3.rs:3:1 |
30 | | | |
31 | LL | const B: i32 = A; | |
32 | | ^^^^^^^^^^^^^^^^^ | |
33 | = note: ...which requires normalizing `A`... | |
1b1a35ee | 34 | = note: ...which again requires simplifying constant for the type system `A`, completing the cycle |
f9f354fc | 35 | = note: cycle used when running analysis passes on this crate |
0531ce1d | 36 | |
dc9dc135 | 37 | error: aborting due to previous error |
0531ce1d XL |
38 | |
39 | For more information about this error, try `rustc --explain E0391`. |