summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/match-arrows-block-then-binop.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/match-arrows-block-then-binop.stderr')
-rw-r--r--src/test/ui/parser/match-arrows-block-then-binop.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/parser/match-arrows-block-then-binop.stderr b/src/test/ui/parser/match-arrows-block-then-binop.stderr
new file mode 100644
index 000000000..cb361a3db
--- /dev/null
+++ b/src/test/ui/parser/match-arrows-block-then-binop.stderr
@@ -0,0 +1,15 @@
+error: expected pattern, found `+`
+ --> $DIR/match-arrows-block-then-binop.rs:5:9
+ |
+LL | } + 5
+ | ^ expected pattern
+ |
+help: parentheses are required to parse this as an expression
+ |
+LL ~ 0 => ({
+LL | 0
+LL ~ }) + 5
+ |
+
+error: aborting due to previous error
+