fork/rust

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

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

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