Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
722b2ee17d846d9ba1a7478a5368a3bbaae3e665
/
.
/
src
/
tools
/
miri
/
tests
/
fail
/
zst1.rs
blob: cc81481e4fa4cdf4c90773386f6eba26bd0af641 [
file
] [
log
] [
blame
]
fn
main
()
{
// make sure ZST locals cannot be accessed
let
x
=
&()
as
*
const
()
as
*
const
i8
;
let
_val
=
unsafe
{
*
x
};
//~ ERROR: out-of-bounds
}