How to Use Common Built-in Macros (println!, vec!, todo!, etc.)

Use println! for output, vec! for lists, and todo! for placeholders to write concise Rust code.

Use println! to print text, vec! to create vectors, and todo! to mark incomplete code that panics at runtime. These macros expand into code during compilation, allowing for concise syntax and runtime checks.

fn main() {
    println!("Hello, world!");
    let numbers = vec![1, 2, 3];
    let incomplete = todo!("Implement this later");
}