Fix implementation

This commit is contained in:
CoffeeBlend 2021-01-12 01:39:10 +01:00
parent 5d65b7e055
commit 985071b08f
No known key found for this signature in database
GPG Key ID: 704E0149B0194B3C

View File

@ -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()
}
}