When people say that learning Rust is hard, they often mention lifetimes. However, even after seven years of writing Rust, 95% of my code, probably more, doesn’t have any lifetime annotations! It is one of the areas of the language that I definitely worried way too much about when learning Rust, and I see many beginners do the same. Disclaimer: When Lifetimes Really Matter The advice in this article is focused on common scenarios. There are cases where you do have to worry about lifetimes. ...