[−][src]Macro cargo_what::what
This is the core what!
macro.
It behaves similarly to todo!
, passes all type-checks,
and panics if executed.
fn hello() -> Result<(), Box<dyn Error>> { what!() }
One difference from todo!
is that what!
also accepts
arbitrary arguments, which can help reduce "unused variable"
noise.
fn hello(a: usize, b: usize) -> usize { let c = a..b; what!(a, b, c) }
See the crate-level documentation for more info
on how you can show the type-info of what!
s in a program.