• Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 day ago

    Those also happen to be errors you’d typically run into, if you don’t yet really know Rust…

    • d_k_bo@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      19 hours ago

      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.