blob: d246d2c981ba26a90d7ed174099a98116adee0a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
fn main() {
println!("Hello, world!");
another_function(5, 'Y');
println!("FOO: {}", foo());
println!("PlusOne: {}", plus_one(5));
}
fn another_function(x:i32, y:char) {
println!("The value of x is: {x} and y is: {y}");
}
// This kaboom
fn foo() -> i32 {
3+5;
}
fn plus_one(x: i32) -> i32 {
x + 1
}
|