Re:Pitfalls of Safe Rust
by steveklabnik on Monday April 07, 2025 @03:26PM
(#43614953)
> which if I understand correctly triggers UB.
Yes, your parent's example would be UB, and require unsafe.
Yes, your parent's example would be UB, and require unsafe.
OTOH with Rust you'd have to violate its safety guarantees, which if I understand correctly triggers UB.