rust/tests/ui/type-use-i1-versus-i8.rs
2023-01-11 09:32:08 +00:00

13 lines
196 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);
}
}