claims

Macro debug_assert_err

Source
macro_rules! debug_assert_err {
    ($($arg:tt)*) => { ... };
}
Expand description

Asserts that the expression matches an Err(_) variant in debug builds.

This macro behaves nearly the same as assert_err! on debug builds, although it does not return the value contained in the Err variant. On release builds it is a no-op.