Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-fail
/
mir_indexing_oob_3.rs
blob: 188460fff783281face8a48d25be5024723ae609 [
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
mir
()
->
u8
{
C
[
10
]
}
fn
main
()
{
mir
();
}