Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
consts
/
miri_unleashed
/
raw_mutable_const.rs
blob: 5f8ec4e6e294ded12106882edc1c186ca2261adf [
file
] [
log
] [
blame
]
// compile-flags: -Zunleash-the-miri-inside-of-you
use
std
::
cell
::
UnsafeCell
;
const
MUTABLE_BEHIND_RAW
:
*
mut
i32
=
&
UnsafeCell
::
new
(
42
)
as
*
const
_
as
*
mut
_
;
//~^ ERROR: untyped pointers are not allowed in constant
fn
main
()
{}