Error code E0521
Borrowed data escapes outside of closure.
Erroneous code example:
ⓘ
A type annotation of a closure parameter implies a new lifetime declaration. Consider to drop it, the compiler is reliably able to infer them.
See the Closure type inference and annotation and Lifetime elision sections of the Book for more details.