fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
947 B27 linesraw
1error[E0391]: cycle detected when const checking if rvalue is promotable to static `A`
2  --> $DIR/issue-23302-3.rs:1:1
3   |
4LL | const A: i32 = B;
5   | ^^^^^^^^^^^^^^^^^
6   |
7note: ...which requires checking which parts of `A` are promotable to static...
8  --> $DIR/issue-23302-3.rs:1:16
9   |
10LL | const A: i32 = B;
11   |                ^
12note: ...which requires const checking if rvalue is promotable to static `B`...
13  --> $DIR/issue-23302-3.rs:3:1
14   |
15LL | const B: i32 = A;
16   | ^^^^^^^^^^^^^^^^^
17note: ...which requires checking which parts of `B` are promotable to static...
18  --> $DIR/issue-23302-3.rs:3: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
23   = note: cycle used when running analysis passes on this crate
24
25error: aborting due to previous error
26
27For more information about this error, try `rustc --explain E0391`.