issue-23302-3.stderr 936 字节
Newer Older
J
John Kåre Alsaker 已提交
1
error[E0391]: cycle detected when const checking if rvalue is promotable to static `A`
O
Oliver Schneider 已提交
2
  --> $DIR/issue-23302-3.rs:11:1
3
   |
J
John Kåre Alsaker 已提交
4
LL | const A: i32 = B; //~ ERROR cycle detected
5
   | ^^^^^^^^^^^^^^^^^
O
Oliver Schneider 已提交
6
   |
J
John Kåre Alsaker 已提交
7
note: ...which requires checking which parts of `A` are promotable to static...
O
Oliver Schneider 已提交
8
  --> $DIR/issue-23302-3.rs:11:16
9
   |
J
John Kåre Alsaker 已提交
10
LL | const A: i32 = B; //~ ERROR cycle detected
11
   |                ^
J
John Kåre Alsaker 已提交
12
note: ...which requires const checking if rvalue is promotable to static `B`...
O
Oliver Schneider 已提交
13 14
  --> $DIR/issue-23302-3.rs:13:1
   |
J
John Kåre Alsaker 已提交
15
LL | const B: i32 = A;
O
Oliver Schneider 已提交
16
   | ^^^^^^^^^^^^^^^^^
J
John Kåre Alsaker 已提交
17 18 19 20 21 22
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
23 24 25

error: aborting due to previous error

G
Guillaume Gomez 已提交
26
For more information about this error, try `rustc --explain E0391`.