Module lib::assert_fn_err::assert_fn_err_ne

source ·
Expand description

Assert a function err() is not equal to another.

§Example

fn f(i: i8) -> Result<String, String> {
    match i {
        0..=9 => Ok(format!("{}", i)),
        _ => Err(format!("{:?} is out of range", i)),
    }
}

let a: i8 = 10;
let b: i8 = 20;
assert_fn_err_ne!(f, a, f, b);

§Module macros