reference icon indicating copy to clipboard operation
reference copied to clipboard

Lifetime and scope clarification in `Closure types` reference.

Open stegrams opened this issue 2 years ago • 2 comments

As I understood so far, lifetime is affecting the borrowing rules enforcement, scope on the other hand, has to do with memory deallocation. The variables' lifetime ends the last time the compiler locates its usage, whereas the scope ends with a distinct symbol, i.e. right bracket.

stegrams avatar Dec 06 '23 12:12 stegrams

The changes in the following PR may address the motivation for the change in this one:

  • https://github.com/rust-lang/reference/pull/1521

traviscross avatar Jul 09 '24 23:07 traviscross

:umbrella: The latest upstream changes (possibly d6d24b9b548f62a50461bac85ce278d80437ab05) made this pull request unmergeable. Please resolve the merge conflicts.

rustbot avatar Dec 11 '24 21:12 rustbot