error[E0080]: evaluation of constant value failed --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ reached the configured maximum number of stack frames | note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `b` --> $DIR/infinite-recursion-const-fn.rs:7:5 | LL | a() | ^^^ note: inside `a` --> $DIR/infinite-recursion-const-fn.rs:4:5 | LL | b() | ^^^ note: inside `ARR::{constant#0}` --> $DIR/infinite-recursion-const-fn.rs:9:18 | LL | const ARR: [i32; a()] = [5; 6]; | ^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0080`.