reference
reference copied to clipboard
Lifetime and scope clarification in `Closure types` reference.
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.
The changes in the following PR may address the motivation for the change in this one:
- https://github.com/rust-lang/reference/pull/1521
:umbrella: The latest upstream changes (possibly d6d24b9b548f62a50461bac85ce278d80437ab05) made this pull request unmergeable. Please resolve the merge conflicts.