macro_rules! format_err {
    ($($arg:tt)*) => { ... };
}
Expand description

Constructs an Error using the standard string interpolation syntax.

#[macro_use] extern crate failure;

fn main() {
    let code = 101;
    let err = format_err!("Error code: {}", code);
}