21 lines
574 B
Plaintext
21 lines
574 B
Plaintext
|
error[E0391]: unsupported cyclic reference between types/traits detected
|
||
|
--> $DIR/issue-23302-3.rs:11:16
|
||
|
|
|
||
|
11 | const A: i32 = B; //~ ERROR E0391
|
||
|
| ^ cyclic reference
|
||
|
|
|
||
|
note: the cycle begins when processing `B`...
|
||
|
--> $DIR/issue-23302-3.rs:13:1
|
||
|
|
|
||
|
13 | const B: i32 = A;
|
||
|
| ^^^^^^^^^^^^^^^^^
|
||
|
note: ...which then requires processing `A`...
|
||
|
--> $DIR/issue-23302-3.rs:13:16
|
||
|
|
|
||
|
13 | const B: i32 = A;
|
||
|
| ^
|
||
|
= note: ...which then again requires processing `B`, completing the cycle.
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|