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