Move src/test/ui/if to src/test/ui/expr/if
This commit is contained in:
parent
1c389ffeff
commit
37b97f095c
29 changed files with 0 additions and 0 deletions
9
src/test/ui/expr/if/if-without-block.rs
Normal file
9
src/test/ui/expr/if/if-without-block.rs
Normal 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 `{`
|
Loading…
Add table
Add a link
Reference in a new issue