advent-of-code/16/src/main.rs

10 lines
185 B
Rust
Raw Normal View History

2018-12-17 09:45:54 +01:00
fn addi(first: i32, second: i32) -> i32 {
return first + second;
}
fn main() {
println!("Hello, world!");
let a: fn(i32, i32) -> i32 = addi;
println!("{}", a(1, 2));
}