summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/range_inclusive.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/range_inclusive.stderr')
-rw-r--r--tests/ui/parser/range_inclusive.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/range_inclusive.stderr b/tests/ui/parser/range_inclusive.stderr
new file mode 100644
index 000000000..8a9178263
--- /dev/null
+++ b/tests/ui/parser/range_inclusive.stderr
@@ -0,0 +1,11 @@
+error[E0586]: inclusive range with no end
+ --> $DIR/range_inclusive.rs:5:15
+ |
+LL | for _ in 1..= {}
+ | ^^^ help: use `..` instead
+ |
+ = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0586`.