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