Skip to main content

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.

Back to lesson: Practice: Lifetime Clinic