Calling a closure twice when its body consumes a capture

greet is called twice in a row. What happens when this program is compiled?

main.rs
fn main() {
    let name = String::from("Alice");

    let greet = move || {
        let owned: String = name.into();
        println!("hello, {}", owned);
    };

    greet();
    greet();
}

36 of 53 in Rust