Sign in
rust
/
rust
/
08cd08fbef8c6663b052d8d9e4930d5696cbb8a7
/
.
/
tests
/
ui
/
consts
/
recursive.rs
blob: ed23baf07682eb0e5c3c96b51ab9d1603820f6ee [
file
]
#![
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
()
{}