rust/tests/ui/expr/if/if-without-block.rs
2023-01-11 09:32:08 +00:00

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");
}
}