Slug: unsafe-redesign-04 · Paired reading: Chapter 4
Prompt
Document (in comments) the dangling-pointer bug Miri catches, via
fn dangling_demo_is_rejected_by_types(). Provide a SAFE alternative
fn read_first(xs: &[i32]) -> Option<i32>. Do not include actual UB —
tests must stay Miri-clean.