summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-51602.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-51602.stderr')
-rw-r--r--tests/ui/parser/issues/issue-51602.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-51602.stderr b/tests/ui/parser/issues/issue-51602.stderr
new file mode 100644
index 000000000..4a5653fdb
--- /dev/null
+++ b/tests/ui/parser/issues/issue-51602.stderr
@@ -0,0 +1,14 @@
+error: expected `{`, found keyword `in`
+ --> $DIR/issue-51602.rs:2:10
+ |
+LL | if i in 1..10 {
+ | ^^ expected `{`
+ |
+note: the `if` expression is missing a block after this condition
+ --> $DIR/issue-51602.rs:2:8
+ |
+LL | if i in 1..10 {
+ | ^
+
+error: aborting due to previous error
+