Fix implementation
This commit is contained in:
parent
5d65b7e055
commit
985071b08f
@ -840,7 +840,7 @@ impl<T> MaybeUninit<T> {
|
||||
// And thus the conversion is safe
|
||||
unsafe {
|
||||
intrinsics::assert_inhabited::<T>();
|
||||
(&array as *const _ as *const T).read()
|
||||
(&array as *const _ as *const [T; N]).read()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user