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