2016-11-17 09:01:30 -06:00
|
|
|
fn main() {
|
|
|
|
let mut data: [u8; 1024] = unsafe { std::mem::uninitialized() };
|
|
|
|
for i in 0..data.len() {
|
2022-06-19 22:33:59 -05:00
|
|
|
unsafe {
|
|
|
|
std::ptr::write(&mut data[i], 0);
|
|
|
|
}
|
2016-11-17 09:01:30 -06:00
|
|
|
}
|
|
|
|
assert_eq!(data.len(), 1024);
|
|
|
|
}
|