box-o-sand/rustbyexample/variable_bindings/variable_bindings.rs
2021-09-29 11:35:26 -04:00

16 lines
341 B
Rust

fn main() {
let an_integer = 1u32;
let a_boolean = true;
let unit = ();
let copied_integer = an_integer;
println!("An integer: {:?}", copied_integer);
println!("A boolean: {:?}", a_boolean);
println!("Meet the unit value: {:?}", unit);
let _unused_variable = 3u32;
let noisy_unused_variable = 2u32;
}