summary refs log tree commit diff
path: root/src/test/ui/expr/if/if-without-block.rs
blob: 8a4c59f32613d46de81544441f3251730cda3811 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let n = 1;
    if 5 == {
    //~^ NOTE this `if` expression has a condition, but no block
        println!("five");
    }
}
//~^ ERROR expected `{`, found `}`
//~| NOTE expected `{`