Sign in
fuchsia
/
third_party
/
rust
/
7dbfb0a8ca4ab74ee3111e57a024f9e6257ce37c
/
.
/
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
();
}