2018-04-15 23:21:00 +02:00
|
|
|
error[E0391]: cycle detected when const checking if rvalue is promotable to static `A`
|
2018-03-05 10:21:11 +01:00
|
|
|
--> $DIR/issue-23302-3.rs:11:1
|
2018-02-03 21:15:00 +01:00
|
|
|
|
|
2018-04-15 23:21:00 +02:00
|
|
|
LL | const A: i32 = B; //~ ERROR cycle detected
|
2018-02-03 21:15:00 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2018-03-05 10:21:11 +01:00
|
|
|
|
|
2018-04-15 23:21:00 +02:00
|
|
|
note: ...which requires checking which parts of `A` are promotable to static...
|
2018-03-05 10:21:11 +01:00
|
|
|
--> $DIR/issue-23302-3.rs:11:16
|
2018-02-03 21:15:00 +01:00
|
|
|
|
|
2018-04-15 23:21:00 +02:00
|
|
|
LL | const A: i32 = B; //~ ERROR cycle detected
|
2018-02-03 21:15:00 +01:00
|
|
|
| ^
|
2018-04-15 23:21:00 +02:00
|
|
|
note: ...which requires const checking if rvalue is promotable to static `B`...
|
2018-03-05 10:21:11 +01:00
|
|
|
--> $DIR/issue-23302-3.rs:13:1
|
|
|
|
|
|
2018-04-15 23:21:00 +02:00
|
|
|
LL | const B: i32 = A;
|
2018-03-05 10:21:11 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2018-04-15 23:21:00 +02:00
|
|
|
note: ...which requires checking which parts of `B` are promotable to static...
|
|
|
|
--> $DIR/issue-23302-3.rs:13:16
|
|
|
|
|
|
|
|
|
LL | const B: i32 = A;
|
|
|
|
| ^
|
|
|
|
= note: ...which again requires const checking if rvalue is promotable to static `A`, completing the cycle
|
2018-02-03 21:15:00 +01:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0391`.
|