2018-02-09 17:28:23 -06:00
|
|
|
error[E0391]: cyclic dependency detected
|
2018-03-05 03:21:11 -06:00
|
|
|
--> $DIR/issue-23302-3.rs:13:16
|
2018-02-03 14:15:00 -06:00
|
|
|
|
|
2018-03-05 03:21:11 -06:00
|
|
|
LL | const B: i32 = A; //~ ERROR cyclic dependency detected
|
2018-02-03 14:15:00 -06:00
|
|
|
| ^ cyclic reference
|
|
|
|
|
|
2018-03-05 03:21:11 -06:00
|
|
|
note: the cycle begins when const checking if rvalue is promotable to static `A`...
|
|
|
|
--> $DIR/issue-23302-3.rs:11:1
|
2018-02-03 14:15:00 -06:00
|
|
|
|
|
2018-03-05 03:21:11 -06:00
|
|
|
LL | const A: i32 = B;
|
2018-02-03 14:15:00 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2018-03-05 03:21:11 -06:00
|
|
|
note: ...which then requires checking which parts of `A` are promotable to static...
|
|
|
|
--> $DIR/issue-23302-3.rs:11:1
|
|
|
|
|
|
|
|
|
LL | const A: i32 = B;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
note: ...which then requires const checking if rvalue is promotable to static `B`...
|
|
|
|
--> $DIR/issue-23302-3.rs:11:16
|
2018-02-03 14:15:00 -06:00
|
|
|
|
|
2018-03-05 03:21:11 -06:00
|
|
|
LL | const A: i32 = B;
|
2018-02-03 14:15:00 -06:00
|
|
|
| ^
|
2018-03-05 03:21:11 -06:00
|
|
|
note: ...which then requires checking which parts of `B` are promotable to static...
|
|
|
|
--> $DIR/issue-23302-3.rs:13:1
|
|
|
|
|
|
|
|
|
LL | const B: i32 = A; //~ ERROR cyclic dependency detected
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
= note: ...which then again requires const checking if rvalue is promotable to static `A`, completing the cycle.
|
2018-02-03 14:15:00 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-26 02:56:00 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0391"
|