nandi/rustnimpublic Fork 0
4e4d09dcdd22d17ba510de5639fc3a952ac73f6e
Commits
Clone
git clone https://git.rickub.com/nandi/rustnim.git
git clone ssh://git@rickub.com/nandi/rustnim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

007-format-specs.rs · 11 lines · 350 BRust Blame HistoryRaw
Add the differential test runner, and a lowering to measure with it 8ac32af nandithebull 14h ago1fn main() {
2 println!("{:x} {:X} {:b} {:o}", 255u32, 255u32, 5u8, 64u16);
3 println!("{:02x}{:02x}", 1u8, 254u8);
4 println!("{:08b}", 5u8);
5 println!("[{:5}]", 42i32);
6 println!("{0} {1} {0}", 1i32, 2i32);
7 let name: i32 = 7;
8 println!("inline {name}");
9 println!("{{literal}}");
10 println!("{:?} {:?}", "quoted\n", true);
11}