fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0391]: cycle detected when const-evaluating `a` 2 --> $DIR/infinite-recursion-const-fn.rs:3:25 3 | 4LL | const fn a() -> usize { b() } 5 | ^^^ 6 | 7note: ...which requires const-evaluating `b`... 8 --> $DIR/infinite-recursion-const-fn.rs:4:25 9 | 10LL | const fn b() -> usize { a() } 11 | ^^^ 12 = note: ...which again requires const-evaluating `a`, completing the cycle 13note: cycle used when const-evaluating `ARR::{{constant}}#0` 14 --> $DIR/infinite-recursion-const-fn.rs:5:18 15 | 16LL | const ARR: [i32; a()] = [5; 6]; 17 | ^^^ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0391`.