errors.fyi community error code reference
E0515
rust

Return Reference to Local

A function attempts to return a reference to a local variable or temporary that will be dropped when the function returns. Return an owned value instead, as the referenced data would no longer exist after the function ends.

References

โ† all namespaces for E0515