2018-02-24 17:59:34 -06:00
|
|
|
error[E0391]: cyclic dependency detected
|
2018-02-03 14:15:00 -06:00
|
|
|
--> $DIR/issue-36163.rs:14:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | B = A, //~ ERROR E0391
|
|
|
|
| ^ cyclic reference
|
|
|
|
|
|
|
|
|
note: the cycle begins when const-evaluating `Foo::B::{{initializer}}`...
|
2018-03-05 03:21:11 -06:00
|
|
|
--> $DIR/issue-36163.rs:14:9
|
2018-02-24 17:59:34 -06:00
|
|
|
|
|
|
|
|
LL | B = A, //~ ERROR E0391
|
2018-03-05 03:21:11 -06:00
|
|
|
| ^
|
|
|
|
note: ...which then requires processing `Foo::B::{{initializer}}`...
|
2018-02-24 17:59:34 -06:00
|
|
|
--> $DIR/issue-36163.rs:14:9
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | B = A, //~ ERROR E0391
|
|
|
|
| ^
|
2018-03-05 03:21:11 -06:00
|
|
|
note: ...which then requires const-evaluating `A`...
|
|
|
|
--> $DIR/issue-36163.rs:11:1
|
|
|
|
|
|
|
|
|
LL | const A: isize = Foo::B as isize;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: ...which then requires computing layout of `Foo`...
|
|
|
|
--> $DIR/issue-36163.rs:11:18
|
|
|
|
|
|
|
|
|
LL | const A: isize = Foo::B as isize;
|
|
|
|
| ^^^^^^
|
2018-02-24 17:59:34 -06:00
|
|
|
= note: ...which then again requires const-evaluating `Foo::B::{{initializer}}`, completing the cycle.
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-02-03 14:15:00 -06:00
|
|
|
error: aborting due to previous error
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0391`.
|