rust/src/test/ui/issue-36163.stderr

32 lines
1009 B
Plaintext
Raw Normal View History

2018-02-24 17:59:34 -06:00
error[E0391]: cyclic dependency detected
--> $DIR/issue-36163.rs:14:9
|
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.
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"