2018-02-09 23:28:23 +00:00
|
|
|
error[E0391]: cyclic dependency detected
|
2018-02-03 20:15:00 +00:00
|
|
|
--> $DIR/issue-23302-3.rs:11:16
|
|
|
|
|
|
2018-02-24 23:59:34 +00:00
|
|
|
LL | const A: i32 = B; //~ ERROR E0391
|
2018-02-03 20:15:00 +00:00
|
|
|
| ^ cyclic reference
|
|
|
|
|
|
|
|
|
note: the cycle begins when processing `B`...
|
|
|
|
--> $DIR/issue-23302-3.rs:13:1
|
|
|
|
|
|
2018-02-24 23:59:34 +00:00
|
|
|
LL | const B: i32 = A;
|
2018-02-03 20:15:00 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
note: ...which then requires processing `A`...
|
|
|
|
--> $DIR/issue-23302-3.rs:13:16
|
|
|
|
|
|
2018-02-24 23:59:34 +00:00
|
|
|
LL | const B: i32 = A;
|
2018-02-03 20:15:00 +00:00
|
|
|
| ^
|
|
|
|
= note: ...which then again requires processing `B`, completing the cycle.
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-26 08:56:00 +00:00
|
|
|
If you want more information on this error, try using "rustc --explain E0391"
|