summaryrefslogtreecommitdiffstats
path: root/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.stderr')
-rw-r--r--tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.stderr b/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.stderr
new file mode 100644
index 000000000..cb7f998df
--- /dev/null
+++ b/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.stderr
@@ -0,0 +1,15 @@
+error: unexpected `>` after inclusive range
+ --> $DIR/half-open-range-pats-inclusive-match-arrow.rs:5:14
+ |
+LL | 74..=> {},
+ | ---^
+ | |
+ | this is parsed as an inclusive range `..=`
+ |
+help: add a space between the pattern and `=>`
+ |
+LL | 74.. => {},
+ | +
+
+error: aborting due to previous error
+