☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
anyhow
/
tests
/
ui
/
must-use.rs
☽
☼
.cargo/vendor/anyhow/tests/ui/must-use.rs
code
plain
raw
GPL-2
1998-2015, Sourcefire, Inc.; 2002-2007, Tomasz Kojm <
[email protected]
>; 2006, Sensory Networks, Inc; 2007-2015, Cisco Systems, Inc; 2014-2018, Cisco and/or its affiliates
debian/copyright
1
#![deny(unused_must_use)]
2
3
use anyhow::anyhow;
4
5
fn main() -> anyhow::Result<()> {
6
if true {
7
// meant to write bail!
8
anyhow!("it failed");
9
}
10
Ok(())
11
}