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
letmut buf = [0u8];let maybe = unsafe{&mut*((&mut buf)as*mut[u8]as*mut[MaybeUninit<u8>])};// After this line `buf` will contain uninitialized value, which is UB
maybe[0] = MaybeUninit::uninit();
The text was updated successfully, but these errors were encountered:
See rust-lang/rfcs#2930 (comment) and rust-lang/rfcs#2930 (comment).
Example:
The text was updated successfully, but these errors were encountered: