json5format

Macro test_error

Source
macro_rules! test_error {
    ($err:expr) => { ... };
}
Expand description

Create a TestFailure error including the source file location of the macro call.

ยงExample:

return Err(test_error!("error message"));