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