assert_not_matches

Macro assert_not_matches 

Source
macro_rules! assert_not_matches {
    ($expr:expr, $pat:pat $(,)?) => { ... };
}
Expand description

Asserts that the expression does not match the pattern.

This is equivalent to assert!(!matches!(...)) except that it produces nicer errors.