Beginner
Rust
Q69 / 100
What is a Rust lifetime elision rule?
Correct! Well done.
Incorrect.
The correct answer is B) Compiler rules that infer lifetime annotations in common patterns so they don't need to be written explicitly
B
Correct Answer
Compiler rules that infer lifetime annotations in common patterns so they don't need to be written explicitly
Explanation
Three elision rules: (1) each input ref gets its own lifetime; (2) one input → output gets same; (3) self method → output gets self's lifetime.
Progress
69/100