2022-01-11 17:55:56 -08:00
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
const fn f<T>(x: T) { //~ WARN function cannot return without recursing
|
|
|
|
f(x);
|
2022-09-21 13:05:20 +02:00
|
|
|
//~^ ERROR evaluation of constant value failed
|
2022-01-11 17:55:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
const X: () = f(1);
|
|
|
|
|
|
|
|
fn main() {}
|