macro_rules! format_err {
($kind:expr, $msg:literal $(,)?) => { ... };
($kind:expr, $msg:expr $(,)?) => { ... };
($kind:expr, $msg:expr, $($arg:tt)*) => { ... };
}
Expand description
A convenient way to create a new error using the normal formatting infrastructure