Skip to main content

bail

Macro bail 

Source
macro_rules! bail {
    ($fmt:literal $(,)?) => { ... };
    ($fmt:expr, $($arg:tt)*) => { ... };
}
Expand description

Early-return with an Error::Message. Drop-in for anyhow::bail!. Single-literal form supports captured identifiers via format!’s Rust 2021 implicit named args.