1 2 3 4 5 6 7 8 9 10
use debug_unreachable::debug_unreachable; fn main() { if 0 > 100 { // Can't happen! unsafe { debug_unreachable!() } } else { println!("Good, 0 <= 100."); } }