rust/tests/ui/expr/if-bot.rs

7 lines
108 B
Rust

//@ run-pass
pub fn main() {
let i: isize = if false { panic!() } else { 5 };
println!("{}", i);
}