r/rustjerk • • Oct 14 '26

Rust devs hate this one simple trick

Post image
407 Upvotes

39 comments sorted by

View all comments

1

u/cristi1990an Oct 19 '26

The syntax is horrible because even in unsafe code, bypassing the borrow checker this way is heavily discouraged. Simple reads and writes through these references can be UB.