Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
test
/
run-fail
/
mir_indexing_oob_2.rs
blob: 64b260993c994ac01ab1a84d99fa348eb3134519 [
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
(
unconditional_panic
)]
fn
test
()
->
u8
{
C
[
10
]
}
fn
main
()
{
test
();
}