()
| 1 | fn main() { |
| 2 | // integers |
| 3 | let x: i32 = -1000; |
| 4 | let x = -1000i32; |
| 5 | let y: u64 = 100; |
| 6 | let y = 100u64; |
| 7 | let large_number = 100_000_000; |
| 8 | |
| 9 | // floats |
| 10 | let xf: f32 = -1.2345; |
| 11 | let xf = -1.2345_f32; |
| 12 | |
| 13 | // complex numbers |
| 14 | // not part of rusts standard library |
| 15 | let complex_integer = num::complex::Complex::new(10, 20); |
| 16 | let complex_float = num::complex::Complex::new(10.1, 20.1); |
| 17 | |
| 18 | // binary literals |
| 19 | let x: u8 = 0b1010_1010; |
| 20 | let y: u8 = 0b0101_0101; |
| 21 | dbg!(x | y); |
| 22 | |
| 23 | // hex |
| 24 | let x: u8 = 0xAF; |
| 25 | let largex = 0xABCD_EF01_u32; |
| 26 | |
| 27 | // boolean |
| 28 | let yes = true; |
| 29 | let no = false; |
| 30 | } |
nothing calls this directly
no outgoing calls
no test coverage detected