[][src]Macro bugsalot::bug

macro_rules! bug {
    ( $e:expr ) => { ... };
    () => { ... };
    ( $($tt:tt)+ ) => { ... };
}

Reports a bug by logging/breaking. Unlike panic!(...) this is nonfatal and continuable.

Examples

use bugsalot::bug;
 
bug!();
bug!("A simple bug expression, {} allowed");
bug!("A formatting bug expression: {}", "automatically wrapped in format!(...)");