Lifetime in Rust Part 3 - Question and Answers about Lifetimes

Опубликовано: 19 Март 2026
на канале: Daily dose of Rust Language
187
8

As promised, in this third installment of the Lifetimes in Rust Series, we took a look at 2 example questions from https://stackoverflow.com. Our goal is to find out what kind of issues people have with Lifetimes in Rust in in their everyday Use and we found a lot out in this Video.

== Related Videos ==
Lifetimes Part 1 -    • Rust Programming: Lifetimes Demystified - ...   - Lifetime, Lifetime Annotations, Lifetimes in Rust Functions

Lifetimes Part 2 -    • Part 2 - Exploring Lifetime in Rust - Elis...   - Lifetimes in Structs - Lifetime Elission Rules (with examples)

Lifetimes Part 3 -    • Lifetime in Rust   Part 3 - Question and A...   Question and Answers about Rustimes in Rust from Stackoverflow (With video explanations)

Stackoverflow Questions
Question 1: https://stackoverflow.com/questions/4...
Question 2: https://stackoverflow.com/questions/6...

== Connect with us ==
Website: https://daily-dose-of-rust-language.p...
Youtube Subscribe: https://bit.ly/ytddrust
Facebook: https://bit.ly/fbddrust
Twitter: https://bit.ly/twddrust
Linkedin: https://bit.ly/linkedinddrust

== Chapters ==
0:00 Intro to part 3
0:44 Question about lifetime in Rust, an error caused by using Cell Struct
8:34 Question about lifetime in Rust where the rust compiler couldn't automatically assign lifetimes to the return value.