Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
consts
/
const-call.rs
blob: 3d5b64ed4c26fd92807592ac7ccec6fcfc630212 [
file
] [
log
] [
blame
]
fn
f
(
x
:
usize
)
->
usize
{
x
}
fn
main
()
{
let
_
=
[
0
;
f
(
2
)];
//~^ ERROR calls in constants are limited to constant functions
//~| ERROR evaluation of constant value failed
}