RBE primitives
This commit is contained in:
parent
60da2e20dc
commit
f574628afc
2
rustbyexample/.gitignore
vendored
2
rustbyexample/.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
/hello/*
|
||||
/primitives/*
|
||||
!/hello/*.rs
|
||||
!/primitives/*.rs
|
||||
|
19
rustbyexample/primitives/primitives.rs
Normal file
19
rustbyexample/primitives/primitives.rs
Normal file
@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user