Sign in
android
/
toolchain
/
rustc
/
2f3fdfeb95384b9046ea35b3532e23c652eca660
/
.
/
src
/
test
/
ui
/
unsafe
/
issue-45087-unreachable-unsafe.rs
blob: 071cea8fbd78bd905a4f9cfea5951de842ad05a7 [
file
] [
log
] [
blame
]
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
fn
main
()
{
return
;
*(
1
as
*
mut
u32
)
=
42
;
//~^ ERROR dereference of raw pointer is unsafe
}