Lifetime Elision
In the previous article, we learned how to use explicit lifetime annotations to help the compiler ensure reference validity. You might have been thinking that writing 'a and 'b everywhere could get tedious. You're right! The Rust team thought so too. That's why the compiler has a powerful feature called lifetime elision, which allows it to infer lifetimes in common, predictable patterns, saving you from writing explicit annotations most of the time.