Skip to content
Quiz · Ownership · lesson 4 of 8

Quiz — after a move

Question 1 of 2

What happens when this program is built and run?

Rust
fn main() {
    let s1 = String::from("hi");
    let s2 = s1;
    println!("{s1} {s2}");
}