galvanic_assert::matchers

Function assertion_always_fails

Source
pub fn assertion_always_fails<'a, T: 'a>() -> Box<dyn Matcher<'a, T> + 'a>
Expand description

A matcher which never matches.

#Examples

use galvanic_assert::matchers::*;
assert_that!(
    assert_that!(&(1+1), assertion_always_fails()),
    panics
);