15 lines
186 B
Rust
15 lines
186 B
Rust
fn main() {
|
|
let x = 10;
|
|
let y = 20;
|
|
|
|
takes_u32(x);
|
|
takes_i8(y);
|
|
}
|
|
|
|
fn takes_u32(x: u32) -> () {
|
|
println!("{x}");
|
|
}
|
|
|
|
fn takes_i8(x: i8) -> () {
|
|
println!("{x}");
|
|
}
|