rust/src/test/ui/issue-23302-3.stderr

27 lines
936 B
Plaintext
Raw Normal View History

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-04-15 23:21:00 +02:00
LL | const A: i32 = B; //~ ERROR cycle detected
| ^^^^^^^^^^^^^^^^^
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-04-15 23:21:00 +02:00
LL | const A: i32 = B; //~ ERROR cycle detected
| ^
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
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0391`.