mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
12 lines
165 B
Rust
12 lines
165 B
Rust
//@ run-pass
|
|
|
|
use std::ptr;
|
|
|
|
pub fn main() {
|
|
unsafe {
|
|
let mut x: bool = false;
|
|
// this line breaks it
|
|
ptr::write(&mut x, false);
|
|
}
|
|
}
|