lysdexic@programming.dev to Rust@programming.devEnglish · 1 year agoCommon Rust Lifetime Misconceptions (2020)github.comexternal-linkmessage-square5fedilinkarrow-up138arrow-down11cross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
arrow-up137arrow-down1external-linkCommon Rust Lifetime Misconceptions (2020)github.comlysdexic@programming.dev to Rust@programming.devEnglish · 1 year agomessage-square5fedilinkcross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
minus-squaresirdorius@programming.devlinkfedilinkarrow-up2·edit-21 year 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.