3 ms·
Using unsafe blocks and pointers can silence the borrow checker, but that doesn't mean that code is well defined. For example, using swap (mentioned in the art
by wuch 9y ago
Using unsafe blocks and pointers can silence the borrow checker, but that doesn't mean that code is well defined.
For example, using swap (mentioned in the article) with overlapping references would be undefined behaviour.