Skip to main content

fail

Macro fail 

Source
macro_rules! fail {
    () => { ... };
}
Expand description

Construct an Assertion that will always fail.

#[test]
fn fail() -> impl Assertion {
    fail!().should_fail()
}