todo! for a match



examples/macros/todo-match/src/main.rs
fn main() {
    let args = std::env::args().collect::<Vec<_>>();
    if args.len() != 2 {
        eprintln!("Usage: {} NAME", args[0]);
        std::process::exit(0);
    }

    match args[1].as_str() {
        "foo" => {
            println!("We are handling foo")
        }
        "bar" => {
            println!("We are handling bar")
        }
        name => todo!("We still need to implement for {name}"),
    };
}

$ cargo run -q foo
We are handling foo

$ cargo run -q bar
We are handling bar


$ cargo run -q qqrq
thread 'main' panicked at src/main.rs:15:17:
not yet implemented: We still need to implement for qqrq
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace