Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
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
)];
}