]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issue-23302-3.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / issue-23302-3.stderr
1 error[E0391]: cyclic dependency detected
2 --> $DIR/issue-23302-3.rs:13:16
3 |
4 LL | const B: i32 = A; //~ ERROR cyclic dependency detected
5 | ^ cyclic reference
6 |
7 note: the cycle begins when const checking if rvalue is promotable to static `A`...
8 --> $DIR/issue-23302-3.rs:11:1
9 |
10 LL | const A: i32 = B;
11 | ^^^^^^^^^^^^^^^^^
12 note: ...which then requires checking which parts of `A` are promotable to static...
13 --> $DIR/issue-23302-3.rs:11:1
14 |
15 LL | const A: i32 = B;
16 | ^^^^^^^^^^^^^^^^^
17 note: ...which then requires const checking if rvalue is promotable to static `B`...
18 --> $DIR/issue-23302-3.rs:11:16
19 |
20 LL | const A: i32 = B;
21 | ^
22 note: ...which then requires checking which parts of `B` are promotable to static...
23 --> $DIR/issue-23302-3.rs:13:1
24 |
25 LL | const B: i32 = A; //~ ERROR cyclic dependency detected
26 | ^^^^^^^^^^^^^^^^^
27 = note: ...which then again requires const checking if rvalue is promotable to static `A`, completing the cycle.
28
29 error: aborting due to previous error
30
31 For more information about this error, try `rustc --explain E0391`.