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