Permit use of mem::uninitialized via allow(deprecated)

This commit is contained in:
Mark Rousskov 2019-07-04 11:24:56 -04:00
parent 8a7dded1a2
commit 007d87f171
20 changed files with 30 additions and 9 deletions

View file

@ -7,6 +7,7 @@ use std::mem;
fn foo<const SIZE: usize>() {
let arr: [u8; SIZE] = unsafe {
#[allow(deprecated)]
let mut array: [u8; SIZE] = mem::uninitialized();
array
};