@lysdexic to RustEnglish • 8 months agoCommon Rust Lifetime Misconceptions (2020)github.commessage-square5arrow-up138arrow-down11
arrow-up137arrow-down1external-linkCommon Rust Lifetime Misconceptions (2020)github.com@lysdexic to RustEnglish • 8 months agomessage-square5
minus-square@hairyballslink1•8 months agoIt’s a toy example. In that case, the solution is to assign the expression to a variable to compute its result upfront.
It’s a toy example. In that case, the solution is to assign the expression to a variable to compute its result upfront.