1
Fork 0

Move src/test/ui/if to src/test/ui/expr/if

This commit is contained in:
Havvy (Ryan Scheel) 2020-11-24 17:35:53 -08:00
parent 1c389ffeff
commit 37b97f095c
29 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,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 `{`