Tim McNamara @timclicks.dev · Nov 14

Code quiz time. Why are we not allowed to create `ub` this way?

12 likes 1 replies

?

Replies

Tim McNamara · Nov 14

The MaybeUninit type provides Rust programmers with a way to talk about values that might not be correctly initialized. MaybeUninit::zeroed() fills that space with zero bits. For many (most?) types, that's an excellent default. But...