rust/tests/ui/type-use-i1-versus-i8.rs
2024-02-16 20:02:50 +00:00

13 lines
198 B
Rust

//@ run-pass
//@ pretty-expanded FIXME #23616
use std::ptr;
pub fn main() {
unsafe {
let mut x: bool = false;
// this line breaks it
ptr::write(&mut x, false);
}
}