Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-fail
/
mir_indexing_oob_2.rs
blob: a7a1177260c31b5880ac316091c83a11279bf5e0 [
file
] [
log
] [
blame
]
// error-pattern:index out of bounds: the len is 5 but the index is 10
const
C
:
&
'
static
[
u8
;
5
]
=
b
"hello"
;
#[
allow
(
const_err
)]
fn
test
()
->
u8
{
C
[
10
]
}
fn
main
()
{
test
();
}