Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f62a35bae82dd0c5ff9dedd83fe2cfd74b67792
/
.
/
tests
/
ui
/
consts
/
const-fn-const-eval.rs
blob: 25abca0fb43d23c23747df8e63b81879c17c71b2 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
const
fn
add
(
x
:
usize
,
y
:
usize
)
->
usize
{
x
+
y
}
const
ARR
:
[
i32
;
add
(
1
,
2
)]
=
[
5
,
6
,
7
];
pub
fn
main
()
{}