summary refs log tree commit diff
path: root/src/test/ui/expr/if/if-without-block.stderr
blob: d3f6ca07617f4ced46de000122fe607bb0b65759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: expected `{`, found `}`
  --> $DIR/if-without-block.rs:7:1
   |
LL |     if 5 == {
   |     -- this `if` expression has a condition, but no block
...
LL | }
   | ^ expected `{`
   |
help: maybe you forgot the right operand of the condition?
  --> $DIR/if-without-block.rs:3:10
   |
LL |     if 5 == {
   |          ^^

error: aborting due to previous error