Validating References with Lifetimes in Rust