Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
d91e86e963128ebd9e0baee42d1504670dab1565
/
.
/
tests
/
ui
/
consts
/
recursive.rs
blob: b5703d11310fdf455273d0acedfb06479016509d [
file
] [
log
] [
blame
]
#![
allow
(
unused
)]
const
fn
f
<
T
>(
x
:
T
)
{
//~ WARN function cannot return without recursing
f
(
x
);
}
const
X
:
()
=
f
(
1
);
//~ ERROR evaluation of constant value failed
fn
main
()
{}