Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
consts
/
miri_unleashed
/
raw_mutable_const.rs
blob: cabd754e01ac30165070cf962f2994c8e8cb173e [
file
] [
log
] [
blame
]
// compile-flags: -Zunleash-the-miri-inside-of-you
#![
allow
(
const_err
)]
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
()
{}