What does this program print?

from Ownership
Rust 1.98 beginner 2 min

What does this program print?

Rust
fn rename(mut label: String) -> String {
    label.push_str("-ready");
    label
}

fn main() {
    let label = String::from("batch");
    let label = rename(label);
    println!("{label}");
}
Open in playground
Report an error