Top "Borrowing" questions

The borrow checker refers to a compile time analysis of the ownership concept used by the Rust programming language.

Value does not live long enough

I don't completely understand lifetimes, but I think b's lifetime will end before self's. So, how to edit this code? …

rust lifetime borrowing
Why is it discouraged to accept a reference to a String (&String), Vec (&Vec), or Box (&Box) as a function argument?

I wrote some Rust code that takes a &String as an argument: fn awesome_greeting(name: &String) { println!("…

string reference rust borrowing