Practice · 1 of 3
A View Must Outlive Its Source
CHALLENGE
Difficulty: advanced+25 XP
Implement stableView so the returned string_view is still valid when the test inspects it, and fix danglingView so it returns a view over storage that lives long enough.
Press Submit to check your solution.
Back to lesson: Practice: Lifetime Clinic