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