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