Skip to content
masterclass Buddy

Rust · Macro

todo!

todo! marks unfinished Rust code and helps a prototype pass type analysis. It always panics when execution reaches it, with either its default or a custom message.

Last updated

Since
1.40.0

Syntax

macro_rules! todo {
    () => { ... };
    ($($arg:tt)+) => { ... };
}

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • unimplemented!
  • panic!

Source: todo in std - Rust. Checked 2026-11-03.