lysdexic@programming.dev to Rust@programming.devEnglish · 3 years agoCommon Rust Lifetime Misconceptions (2020)github.comexternal-linkmessage-square5linkfedilinkarrow-up138arrow-down11cross-posted to: hackernews@lemmy.smeargle.fansrust@lemmy.ml
arrow-up137arrow-down1external-linkCommon Rust Lifetime Misconceptions (2020)github.comlysdexic@programming.dev to Rust@programming.devEnglish · 3 years agomessage-square5linkfedilinkcross-posted to: hackernews@lemmy.smeargle.fansrust@lemmy.ml
minus-squaresirdorius@programming.devlinkfedilinkarrow-up2·3 years agoThis looks like a pretty easy fix that the compiler could do by extracting the argument to a temp variable to improve the syntax of the language.
This looks like a pretty easy fix that the compiler could do by extracting the argument to a temp variable to improve the syntax of the language.