about summary refs log tree commit diff
path: root/tests/ui/consts/recursive.rs
blob: ed23baf07682eb0e5c3c96b51ab9d1603820f6ee (plain)
1
2
3
4
5
6
7
8
9
#![allow(unused)]

const fn f<T>(x: T) { //~ WARN function cannot return without recursing
    f(x);
}

const X: () = f(1); //~ ERROR reached the configured maximum number of stack frames

fn main() {}