Permit use of mem::uninitialized via allow(deprecated)
This commit is contained in:
parent
8a7dded1a2
commit
007d87f171
20 changed files with 30 additions and 9 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue