Rust borrowed value does not live long enough
What does this error mean?
When the compiler says that the borrowed value does not live long enough what it actually means is that the lifetime of this value is used beyond. B does not live long enough -- srcformatrs1622 16 layout 18 - borrowed value only
. This means the data must live long enough and remain valid forever it needs to be alive and valid in the channel as well as when fetched.
Problem
The lifetime of a borrowed value is the lifetime of the variable that it is borrowed from. Im receiving a borrowed value does not live long enough error and figured I could find some help here in the community.
Komentar