fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
574 B21 linesraw
1error[E0391]: cycle detected when const checking `A`
2  --> $DIR/issue-23302-3.rs:1:16
3   |
4LL | const A: i32 = B;
5   |                ^
6   |
7note: ...which requires const checking `B`...
8  --> $DIR/issue-23302-3.rs:3:16
9   |
10LL | const B: i32 = A;
11   |                ^
12   = note: ...which again requires const checking `A`, completing the cycle
13note: cycle used when processing `A`
14  --> $DIR/issue-23302-3.rs:1:1
15   |
16LL | const A: i32 = B;
17   | ^^^^^^^^^^^^^^^^^
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0391`.