22 lines
653 B
Plaintext
22 lines
653 B
Plaintext
error[E0391]: cycle detected when processing `Foo::B::{{constant}}`
|
|
--> $DIR/issue-36163.rs:4:9
|
|
|
|
|
LL | B = A, //~ ERROR E0391
|
|
| ^
|
|
|
|
|
note: ...which requires processing `A`...
|
|
--> $DIR/issue-36163.rs:1:18
|
|
|
|
|
LL | const A: isize = Foo::B as isize;
|
|
| ^^^^^^^^^^^^^^^
|
|
= note: ...which again requires processing `Foo::B::{{constant}}`, completing the cycle
|
|
note: cycle used when const-evaluating `Foo::B::{{constant}}`
|
|
--> $DIR/issue-36163.rs:4:9
|
|
|
|
|
LL | B = A, //~ ERROR E0391
|
|
| ^
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0391`.
|