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
}