diff options
Diffstat (limited to 'src/test/ui/expr/if/if-without-block.stderr')
-rw-r--r-- | src/test/ui/expr/if/if-without-block.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/expr/if/if-without-block.stderr b/src/test/ui/expr/if/if-without-block.stderr new file mode 100644 index 000000000..2d1ee04ce --- /dev/null +++ b/src/test/ui/expr/if/if-without-block.stderr @@ -0,0 +1,14 @@ +error: this `if` expression is missing a block after the condition + --> $DIR/if-without-block.rs:3:5 + | +LL | if 5 == { + | ^^ + | +help: this binary operation is possibly unfinished + --> $DIR/if-without-block.rs:3:8 + | +LL | if 5 == { + | ^^^^ + +error: aborting due to previous error + |