Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
issue-79152-const-array-index.rs
blob: f5471fb74821846e06a4ab01fc0d14a0f0d876ff [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
// Regression test for issue #79152
//
// Tests that we can index an array in a const function
const
fn
foo
()
{
let
mut
array
=
[[
0
;
1
];
1
];
array
[
0
][
0
]
=
1
;
}
fn
main
()
{}