Sign in
fuchsia
/
third_party
/
rust
/
bf84eb538fd16743240434b3e837b36c35719fee
/
.
/
src
/
test
/
ui
/
consts
/
array-literal-index-oob.rs
blob: 64aeb46894d169b63303972a07371c471d5498aa [
file
] [
log
] [
blame
]
// build-pass
#![
warn
(
const_err
)]
fn
main
()
{
&{
[
1
,
2
,
3
][
4
]
};
//~^ WARN index out of bounds
//~| WARN reaching this expression at runtime will panic or abort
//~| WARN erroneous constant used [const_err]
}