]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-use-i1-versus-i8.rs
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / type-use-i1-versus-i8.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 use std::ptr;
5
6 pub fn main() {
7     unsafe {
8         let mut x: bool = false;
9         // this line breaks it
10         ptr::write(&mut x, false);
11     }
12 }