macro_rules! assert_true {
($cond:expr $(,)?) => { ... };
($cond:expr, $($arg:tt)+) => { ... };
}
Expand description
Asserts that the expression is true
ยงExamples
use all_asserts::assert_true;
let a = false;
#[cfg(should_panic)]
assert_true!(a);
let a = true;
assert_true!(a);