Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRustString vs &strSingle-choice MCQ

Why does the second push fail to compile?

fn main() { let mut s = String::from("hi"); s.push('!'); // line A s.push("!!"); // line B }