Rust type mismatch in numerical operation
examples/types/type-mismatch/src/main.rs
fn main() { let x: i32 = 3; let y: i64 = 4; let z = x + y; println!("{}", z); }
- TODO: if we remove the i32 then this works even though, I think, the default is i32
fn main() { let x: i32 = 3; let y: i64 = 4; let z = x + y; println!("{}", z); }