Skip to content

Commit

Permalink
Fix implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
joboet committed Jan 12, 2021
1 parent 5d65b7e commit 985071b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/mem/maybe_uninit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 985071b

Please sign in to comment.