Scalar Types Example
fn main() { // Inferred as i32 let a = 5; // Unsigned let b: u8 = 10; //Boolean let c = true; let d: bool = false; //Character let e = '\u{1F980}'; println!("e is: {}", e); let f: char = e; }
fn main() { // Inferred as i32 let a = 5; // Unsigned let b: u8 = 10; //Boolean let c = true; let d: bool = false; //Character let e = '\u{1F980}'; println!("e is: {}", e); let f: char = e; }