1 2 3 4 5 6 7 8 9 10
fn main() { let x = plus_one(5); println!("The value of x is {}", x); } fn plus_one(x: i32) -> i32 { x + 1 }