Advanced
Rust
Q59 / 100
What is the Non-Lexical Lifetimes (NLL) improvement?
Correct! Well done.
Incorrect.
The correct answer is B) The borrow checker analyzing actual live ranges of borrows rather than lexical scopes, reducing false-positive borrow errors
B
Correct Answer
The borrow checker analyzing actual live ranges of borrows rather than lexical scopes, reducing false-positive borrow errors
Explanation
NLL allows let x = v[0]; v.push(y); to compile — x's borrow ends before the push. Prior to NLL, any &v reference blocked mutation for the entire lexical scope.
Progress
59/100