Sign in
rust
/
rust
/
244fc326f23b58bc9db6bd985c59b80098ff14c1
/
.
/
src
/
tools
/
miri
/
tests
/
fail
/
stacked_borrows
/
zst_slice.rs
blob: be4dac9957d6218801b14e526eb5a8dd900da33f [
file
]
//@compile-flags: -Zmiri-strict-provenance
fn
main
()
{
unsafe
{
let
a
=
[
1
,
2
,
3
];
let
s
=
&
a
[
0.
.
0
];
assert_eq
!(
s
.
len
(),
0
);
assert_eq
!(*
s
.
as_ptr
().
add
(
1
),
2
);
//~ ERROR: /retag .* tag does not exist in the borrow stack/
}
}