3 ms·
> 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, tha
by GolDDranks 1y ago
> 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&edition=2024&gist=a26f2187871532909356b02735644f1b https://play.rust-lang.org/?version=stable&mode=debug&editio...