summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/placement-syntax.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binop/placement-syntax.stderr')
-rw-r--r--tests/ui/binop/placement-syntax.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/binop/placement-syntax.stderr b/tests/ui/binop/placement-syntax.stderr
new file mode 100644
index 000000000..3fdaf4cd0
--- /dev/null
+++ b/tests/ui/binop/placement-syntax.stderr
@@ -0,0 +1,13 @@
+error: unexpected token: `<-`
+ --> $DIR/placement-syntax.rs:3:9
+ |
+LL | if x<-1 {
+ | ^^
+ |
+help: if you meant to write a comparison against a negative value, add a space in between `<` and `-`
+ |
+LL | if x< -1 {
+ | ~~~
+
+error: aborting due to previous error
+