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