2023-05-14 16:11:38 +00:00
|
|
|
fn add(a: i32, b: i32) -> i32 {
|
2023-03-25 14:29:49 +00:00
|
|
|
return a + b;
|
|
|
|
}
|
|
|
|
|
2023-05-14 16:11:38 +00:00
|
|
|
fn main() -> i32 {
|
2023-03-25 14:29:49 +00:00
|
|
|
let x = 2 + 3;
|
|
|
|
let y = add(x, 4);
|
2023-05-14 16:11:38 +00:00
|
|
|
return y;
|
2023-03-25 14:29:49 +00:00
|
|
|
}
|