Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
consts
/
issue-79152-const-array-index.rs
blob: 95518e1bbdbd9354d8fa56c58b1f8caa1a2f1f7c [
file
] [
log
] [
blame
]
// 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
()
{}