You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
377 B
22 lines
377 B
1 year ago
|
#[allow(unused_variables)]
|
||
|
#[allow(unused_assignments)]
|
||
3 years ago
|
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;
|
||
|
}
|