Beginner
Rust
Q8 / 100
What are Rust's borrowing rules?
Correct! Well done.
Incorrect.
The correct answer is B) Either one mutable reference OR any number of immutable references — never both at the same time
B
Correct Answer
Either one mutable reference OR any number of immutable references — never both at the same time
Explanation
The borrow checker enforces: at most one &mut T, or any number of &T at a time. This prevents data races at compile time.
Progress
8/100