Skip to main content

Practice ยท 1 of 3

A View Must Outlive Its Source

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.

Difficulty: advanced

Back to lesson: Practice: Lifetime Clinic