chromium/third_party/rust/chromium_crates_io/vendor/anyhow-1.0.86/tests/ui/must-use.rs

#![deny(unused_must_use)]

use anyhow::anyhow;

fn main() -> anyhow::Result<()> {
    if true {
        // meant to write bail!
        anyhow!("it failed");
    }
    Ok(())
}