2022-02-16 03:56:01 -06:00
|
|
|
error[E0391]: cycle detected when const-evaluating + checking `A`
|
2022-11-15 05:06:20 -06:00
|
|
|
--> $DIR/issue-23302-3.rs:1:16
|
2018-02-03 14:15:00 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | const A: i32 = B;
|
2022-11-15 05:06:20 -06:00
|
|
|
| ^
|
2018-03-05 03:21:11 -06:00
|
|
|
|
|
2022-02-16 03:56:01 -06:00
|
|
|
note: ...which requires const-evaluating + checking `B`...
|
2022-11-15 05:06:20 -06:00
|
|
|
--> $DIR/issue-23302-3.rs:3:16
|
2020-04-19 14:42:24 -05:00
|
|
|
|
|
|
|
|
LL | const B: i32 = A;
|
2022-11-15 05:06:20 -06:00
|
|
|
| ^
|
2022-02-16 03:56:01 -06:00
|
|
|
= note: ...which again requires const-evaluating + checking `A`, completing the cycle
|
|
|
|
note: cycle used when simplifying constant for the type system `A`
|
|
|
|
--> $DIR/issue-23302-3.rs:1:1
|
2020-04-19 14:42:24 -05:00
|
|
|
|
|
2022-02-16 03:56:01 -06:00
|
|
|
LL | const A: i32 = B;
|
2022-02-13 09:27:59 -06:00
|
|
|
| ^^^^^^^^^^^^
|
2018-02-03 14:15:00 -06:00
|
|
|
|
2019-04-05 06:22:13 -05:00
|
|
|
error: aborting due to previous error
|
2018-02-03 14:15:00 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0391`.
|