☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
new_debug_unreachable
/
examples
/
simple.rs
☽
☼
.cargo/vendor/new_debug_unreachable/examples/simple.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
use debug_unreachable::debug_unreachable;
2
3
fn main() {
4
if 0 > 100 {
5
// Can't happen!
6
unsafe { debug_unreachable!() }
7
} else {
8
println!("Good, 0 <= 100.");
9
}
10
}