Skip to content
Coder
Newbie
Learn Coding
Practice
Projects
Tools
Resources
⌘K
EN
Home
Quizzes
Rust Ownership In Depth
Rust Ownership In Depth
Lifetimes, smart pointers and borrowing rules
intermediate
Question 1 of 7
Question 1 of 7
rust
What is the main purpose of lifetime annotations?
A
To tell the compiler about the relationships between references' lifetimes to avoid dangling references
B
To change runtime behavior
C
To improve performance
D
To declare variable scopes
All quizzes
Next