summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/pat-ranges-4.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/pat-ranges-4.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/parser/pat-ranges-4.rs b/src/test/ui/parser/pat-ranges-4.rs
new file mode 100644
index 000000000..61188976b
--- /dev/null
+++ b/src/test/ui/parser/pat-ranges-4.rs
@@ -0,0 +1,6 @@
+// Parsing of range patterns
+
+fn main() {
+ let 10 - 3 ..= 10 = 8;
+ //~^ error: expected one of `...`, `..=`, `..`, `:`, `;`, `=`, or `|`, found `-`
+}