Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRustborrowing & and &mutSingle-choice MCQ

Why does this code fail to compile?

fn main() { let s = String::from("hello"); let r = &mut s; r.push('!'); }