← Back to exercises

Lifetimes: dangling reference

Fix the code so it compiles. The function returns a reference to a local variable that will be destroyed.