box-o-sand/rustbyexample/primitives/primitives.rs

20 lines
321 B
Rust
Raw Normal View History

2021-09-10 18:09:54 +00:00
fn main() {
let logical: bool = true;
let a_float: f64 = 1.0;
let an_integer = 5i32;
let default_float = 3.0;
let default_integer = 7;
let mut inferred_type = 12;
inferred_type = 4294967296i64;
let mut mutable = 12;
mutable = 21;
// mutable = true;
let mutable = true;
}