1 2 3 4 5 6 7 8 9 10
#![feature(coroutines, stmt_expr_attributes)] fn main() { let _ = #[coroutine] || { *(1 as *mut u32) = 42; //~^ ERROR dereference of raw pointer is unsafe yield; }; }