0x0@lemmy.zip to Programmer Humor@programming.dev · 8 days agorace conditionslemmy.zipexternal-linkmessage-square76fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkrace conditionslemmy.zip0x0@lemmy.zip to Programmer Humor@programming.dev · 8 days agomessage-square76fedilink
minus-squarepewgar_seemsimandroid@lemmy.blahaj.zonelinkfedilinkarrow-up0·8 days agorust errors are funny if you don’t know rust
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up0·8 days agoThose also happen to be errors you’d typically run into, if you don’t yet really know Rust…
minus-squared_k_bo@feddit.orglinkfedilinkarrow-up0·edit-27 days agoI do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function. There are also some reported issues that may be false positives, e. g. https://github.com/rust-lang/rust/issues/107115. In some cases, the error message can be misleading: https://github.com/rust-lang/rust/issues/112650
minus-squaremilicent_bystandr@lemm.eelinkfedilinkarrow-up0·8 days ago News at Ten: Borrowed Data Escapes Outside of Associated Function
rust errors are funny if you don’t know rust
Those also happen to be errors you’d typically run into, if you don’t yet really know Rust…
I do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.
There are also some reported issues that may be false positives, e. g. https://github.com/rust-lang/rust/issues/107115. In some cases, the error message can be misleading: https://github.com/rust-lang/rust/issues/112650