You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this example should just be removed, as std::ptr::copy_nonoverlapping requires its source and destination types to be the same. For a "real" manual transmute, someone could transmute the pointers to *const u8 and *mut u8 and then pass the correct number of bytes as the third argument to that function.
nagisa
added a commit
to nagisa/rust
that referenced
this issue
Aug 24, 2015
std::ptr::copy_nonoverlapping takes 3 arguments, but only 2 are provided. It also does not typecheck anymore either.
The text was updated successfully, but these errors were encountered: