Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
run-fail
/
dst-raw-slice.rs
blob: 561b1fb42ed0634cf07a7b2c57b9cf2670b92cc9 [
file
] [
log
] [
blame
]
// Test bounds checking for DST raw slices
// error-pattern:index out of bounds
fn
main
()
{
let
a
:
*
const
[
_
]
=
&[
1
,
2
,
3
];
unsafe
{
let
_b
=
(*
a
)[
3
];
}
}