Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
src
/
test
/
ui
/
consts
/
const-fn-const-eval.rs
blob: d4da990812e35963aac052aebefcb9aa952429c8 [
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
()
{}