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
The message for E0139 suggests replacing let y: SomeType = unsafe { mem::transmute(v) }; with let y: SomeType = unsafe { ptr::read(&v as *const _ as *const SomeType) };. Actually performing such a replacement will result in double drops, since the transmute version consumes v but the read version does not. (It presumably needs a mem::forget(v) or something.)