Sign in
android
/
toolchain
/
rustc
/
c396013a05f0623e5cbcfc712426adb8e384ed83
/
.
/
tests
/
ui
/
consts
/
miri_unleashed
/
raw_mutable_const.rs
blob: adb1f8bf3ec55d1703a26823f14c12a247a8d82a [
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: unsupported untyped pointer in constant
fn
main
()
{}