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.
SubscribeRelated
unimplemented!panic!