Skip to content

Commit 985071b

Browse files
committed
Fix implementation
1 parent 5d65b7e commit 985071b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ impl<T> MaybeUninit<T> {
840840
// And thus the conversion is safe
841841
unsafe {
842842
intrinsics::assert_inhabited::<T>();
843-
(&array as *const _ as *const T).read()
843+
(&array as *const _ as *const [T; N]).read()
844844
}
845845
}
846846

0 commit comments

Comments
 (0)