Rust function return value (integer i32)



examples/functions/return-integer/src/main.rs
fn main() {
    println!("{}", add(2, 3));
    println!("{}", add(3, 4));
}

fn add(x: i32, y: i32) -> i32 {
    #[allow(clippy::needless_return)]
    return x + y;
}