Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
consts
/
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
)];
}