about summary refs log tree commit diff
path: root/tests/ui/infinite/infinite-recursion-const-fn.rs
blob: 3c0b3b9741bd6bdef326fca463aaec32877aed70 (plain)
1
2
3
4
5
6
7
8
9
10
11
//https://github.com/rust-lang/rust/issues/31364

const fn a() -> usize {
    b()
}
const fn b() -> usize {
    a()
}
const ARR: [i32; a()] = [5; 6]; //~ ERROR reached the configured maximum number of stack frames

fn main() {}