Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
unsafe
/
unsafe-move-val-init.rs
blob: 24249a7a813ec69f494a440abcd39a49b5cb2309 [
file
] [
log
] [
blame
]
#![
feature
(
core_intrinsics
)]
use
std
::
intrinsics
;
// `move_val_init` has an odd desugaring, check that it is still treated
// as unsafe.
fn
main
()
{
intrinsics
::
move_val_init
(
1
as
*
mut
u32
,
1
);
//~^ ERROR dereference of raw pointer is unsafe
}