rust/tests/ui/expr/if/if-without-block.rs

8 lines
150 B
Rust

fn main() {
let n = 1;
if 5 == {
//~^ ERROR this `if` expression is missing a block after the condition
println!("five");
}
}