rust/tests/ui/expr/if-bot.rs
2024-02-16 20:02:50 +00:00

7 lines
108 B
Rust

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