Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Unless I'm just misunderstanding the point they're trying to make here.

You misunderstand the word "can". Yes, you can, in unsafe code, do that. And yes, that is undefined behaviour ;)

https://play.rust-lang.org/?version=stable&mode=debug&editio...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: