Sign in
android
/
toolchain
/
rustc
/
3b664ca54b09788037e50e8bf4cb1881bcd6cb8d
/
.
/
src
/
test
/
ui
/
infinite
/
infinite-recursion-const-fn.rs
blob: 34580407926f18cf12d650e378efd406b903b2d1 [
file
] [
log
] [
blame
]
//https://github.com/rust-lang/rust/issues/31364
const
fn
a
()
->
usize
{
//~^ ERROR cycle detected when const-evaluating + checking `a` [E0391]
b
()
}
const
fn
b
()
->
usize
{
a
()
}
const
ARR
:
[
i32
;
a
()]
=
[
5
;
6
];
fn
main
()
{}