]>
Commit | Line | Data |
---|---|---|
83c7162d | 1 | error[E0391]: cycle detected when const checking if rvalue is promotable to static `A` |
0531ce1d XL |
2 | --> $DIR/issue-23302-3.rs:11:1 |
3 | | | |
83c7162d | 4 | LL | const A: i32 = B; //~ ERROR cycle detected |
0531ce1d | 5 | | ^^^^^^^^^^^^^^^^^ |
0531ce1d | 6 | | |
83c7162d | 7 | note: ...which requires checking which parts of `A` are promotable to static... |
0531ce1d XL |
8 | --> $DIR/issue-23302-3.rs:11:16 |
9 | | | |
83c7162d | 10 | LL | const A: i32 = B; //~ ERROR cycle detected |
0531ce1d | 11 | | ^ |
83c7162d | 12 | note: ...which requires const checking if rvalue is promotable to static `B`... |
0531ce1d XL |
13 | --> $DIR/issue-23302-3.rs:13:1 |
14 | | | |
83c7162d | 15 | LL | const B: i32 = A; |
0531ce1d | 16 | | ^^^^^^^^^^^^^^^^^ |
83c7162d XL |
17 | note: ...which requires checking which parts of `B` are promotable to static... |
18 | --> $DIR/issue-23302-3.rs:13:16 | |
19 | | | |
20 | LL | const B: i32 = A; | |
21 | | ^ | |
22 | = note: ...which again requires const checking if rvalue is promotable to static `A`, completing the cycle | |
0531ce1d XL |
23 | |
24 | error: aborting due to previous error | |
25 | ||
26 | For more information about this error, try `rustc --explain E0391`. |