summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/range-3.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/range-3.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/parser/range-3.rs b/src/test/ui/parser/range-3.rs
new file mode 100644
index 000000000..2c917a24e
--- /dev/null
+++ b/src/test/ui/parser/range-3.rs
@@ -0,0 +1,6 @@
+// Test range syntax - syntax errors.
+
+pub fn main() {
+ let r = 1..2..3;
+ //~^ ERROR expected one of `.`, `;`, `?`, `else`, or an operator, found `..`
+}