Beginner
Rust
Q7 / 100
What is borrowing in Rust?
Correct! Well done.
Incorrect.
The correct answer is B) Creating a reference to a value without taking ownership
B
Correct Answer
Creating a reference to a value without taking ownership
Explanation
fn print(s: &String) borrows s without taking ownership. The original owner retains ownership after the function returns.
Progress
7/100