Every executable Rust program starts at the fn main() function. Notice the exclamation mark in println!(...)—that means println! is a Rust Macro, not a regular function, allowing it to check format placeholders ({}) at compile time!
ADVERTISEMENT