blob: 379c36d2ca32187ceb96e38d470499988fd4bf02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
#![feature(generators)]
fn main() {
let _ = || {
*(1 as *mut u32) = 42;
//~^ ERROR dereference of raw pointer is unsafe
yield;
};
}
|