[][src]Macro failure::format_err

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

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);
}