2018-02-09 17:28:23 -06:00
|
|
|
error[E0391]: cyclic dependency detected
|
2018-02-03 14:15:00 -06:00
|
|
|
--> $DIR/issue-23302-2.rs:14:9
|
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | A = Y::B as isize, //~ ERROR E0391
|
2018-02-03 14:15:00 -06:00
|
|
|
| ^^^^^^^^^^^^^ cyclic reference
|
|
|
|
|
|
|
|
|
note: the cycle begins when const-evaluating `Y::A::{{initializer}}`...
|
2018-03-05 03:21:11 -06:00
|
|
|
--> $DIR/issue-23302-2.rs:14:9
|
|
|
|
|
|
|
|
|
LL | A = Y::B as isize, //~ ERROR E0391
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
note: ...which then requires computing layout of `Y`...
|
|
|
|
--> $DIR/issue-23302-2.rs:14:9
|
2018-02-03 14:15:00 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | A = Y::B as isize, //~ ERROR E0391
|
2018-03-05 03:21:11 -06:00
|
|
|
| ^^^^
|
2018-02-03 14:15:00 -06:00
|
|
|
= note: ...which then again requires const-evaluating `Y::A::{{initializer}}`, completing the cycle.
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0391`.
|