Borrow
Fix
Paste broken Rust. Get a real compiler error, explained in plain English.
Curated bug library
-- Choose a curated bug --
Your code
fn main() { let s1 = String::from("hello"); let s2 = s1; println!("{}", s1); }
Compile
Get Hint
Output will appear here...