]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-use-i1-versus-i8.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / 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 }