Pass integer to function return changed value



examples/ownership/mutable-integers-in-function-return/src/main.rs
fn increment(x: i32) -> i32 {
    x + 1
}

fn main() {
    let mut a = 1;
    println!("{a}");
    a = increment(a);
    println!("{a}");
}

1
2