rust/tests/ui/coroutine/issue-45729-unsafe-in-coroutine.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

10 lines
165 B
Rust

#![feature(coroutines)]
fn main() {
let _ = || {
*(1 as *mut u32) = 42;
//~^ ERROR dereference of raw pointer is unsafe
yield;
};
}