Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
ctfe
/
return-in-const-fn.rs
blob: 077a33c081ba8816e04d8c96ee9c4e6797680e32 [
file
] [
log
] [
blame
]
// run-pass
// https://github.com/rust-lang/rust/issues/43754
const
fn
foo
(
x
:
usize
)
->
usize
{
return
x
;
}
fn
main
()
{
[
0
;
foo
(
2
)];
}