mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
10 lines
165 B
Rust
10 lines
165 B
Rust
#![feature(coroutines)]
|
|
|
|
fn main() {
|
|
let _ = || {
|
|
*(1 as *mut u32) = 42;
|
|
//~^ ERROR dereference of raw pointer is unsafe
|
|
yield;
|
|
};
|
|
}
|