galvanic_assert::matchers

Function no_value

Source
pub fn no_value<'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), no_value()),
    panics
);