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

True of safe rust only. You can always fall back to unsafe rust, allocate a chunk of bytes and write/read to it as you wish.


Even in unsafe Rust, this is undefined behavior.


You're allowed to trigger as much undefined behavior as you wish. It makes the program meaningless of course, but it's not like it stops you.




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

Search: