Sign in
android
/
toolchain
/
rustc
/
2f3fdfeb95384b9046ea35b3532e23c652eca660
/
.
/
src
/
test
/
ui
/
unsafe
/
unsafe-fn-assign-deref-ptr.rs
blob: a94e94375ae6a3bcbe88daa32597348b743f46cf [
file
] [
log
] [
blame
]
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
fn
f
(
p
:
*
mut
u8
)
{
*
p
=
0
;
//~ ERROR dereference of raw pointer is unsafe
return
;
}
fn
main
()
{
}