mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
10 lines
202 B
Rust
10 lines
202 B
Rust
#![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() {}
|