Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
ui
/
issues
/
issue-54348.rs
blob: e7221e2cbb1e134463c78a65c114b36d227bfb43 [
file
] [
log
] [
blame
]
fn
main
()
{
[
1
][
0u64
as
usize
];
[
1
][
1.5
as
usize
];
//~ ERROR index out of bounds
//~| ERROR this expression will panic at runtime
[
1
][
1u64
as
usize
];
//~ ERROR index out of bounds
//~| ERROR this expression will panic at runtime
}