Practice ยท 3 of 3
Lifetime Extension โ and Where It Fails
Returning a reference to a temporary can never be safe, so extended() must back its reference with *static* storage. And holderTrap() returns the value a correct Holder would have captured **by value** instead of by reference.
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Lifetime Clinic