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