issue-23302-3.stderr 1.1 KB
Newer Older
1
error[E0391]: cyclic dependency detected
O
Oliver Schneider 已提交
2
  --> $DIR/issue-23302-3.rs:13:16
3
   |
O
Oliver Schneider 已提交
4
LL | const B: i32 = A; //~ ERROR cyclic dependency detected
5 6
   |                ^ cyclic reference
   |
O
Oliver Schneider 已提交
7 8
note: the cycle begins when const checking if rvalue is promotable to static `A`...
  --> $DIR/issue-23302-3.rs:11:1
9
   |
O
Oliver Schneider 已提交
10
LL | const A: i32 = B;
11
   | ^^^^^^^^^^^^^^^^^
O
Oliver Schneider 已提交
12 13 14 15 16 17 18
note: ...which then requires checking which parts of `A` are promotable to static...
  --> $DIR/issue-23302-3.rs:11:1
   |
LL | const A: i32 = B;
   | ^^^^^^^^^^^^^^^^^
note: ...which then requires const checking if rvalue is promotable to static `B`...
  --> $DIR/issue-23302-3.rs:11:16
19
   |
O
Oliver Schneider 已提交
20
LL | const A: i32 = B;
21
   |                ^
O
Oliver Schneider 已提交
22 23 24 25 26 27
note: ...which then requires checking which parts of `B` are promotable to static...
  --> $DIR/issue-23302-3.rs:13:1
   |
LL | const B: i32 = A; //~ ERROR cyclic dependency detected
   | ^^^^^^^^^^^^^^^^^
   = note: ...which then again requires const checking if rvalue is promotable to static `A`, completing the cycle.
28 29 30

error: aborting due to previous error

G
Guillaume Gomez 已提交
31
If you want more information on this error, try using "rustc --explain E0391"