summaryrefslogtreecommitdiffstats
path: root/tests/ui/or-patterns/while-parsing-this-or-pattern.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/or-patterns/while-parsing-this-or-pattern.stderr')
-rw-r--r--tests/ui/or-patterns/while-parsing-this-or-pattern.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/or-patterns/while-parsing-this-or-pattern.stderr b/tests/ui/or-patterns/while-parsing-this-or-pattern.stderr
new file mode 100644
index 000000000..7ad62ff99
--- /dev/null
+++ b/tests/ui/or-patterns/while-parsing-this-or-pattern.stderr
@@ -0,0 +1,10 @@
+error: expected pattern, found `.`
+ --> $DIR/while-parsing-this-or-pattern.rs:5:20
+ |
+LL | Some(42) | .=. => {}
+ | -------- ^ expected pattern
+ | |
+ | while parsing this or-pattern starting here
+
+error: aborting due to previous error
+