assert_debug_panics

Macro assert_debug_panics 

Source
macro_rules! assert_debug_panics {
    ($expr:expr) => { ... };
    ($expr:expr, $needle:expr) => { ... };
}
Expand description

Checks that the given expression panics in debug mode. No-op in release mode.

This macro is useful for tests that check the behavior of debug_assert! or debug_panic! calls.