summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impossible_range.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impossible_range.stderr')
-rw-r--r--src/test/ui/impossible_range.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/impossible_range.stderr b/src/test/ui/impossible_range.stderr
new file mode 100644
index 000000000..53c56065c
--- /dev/null
+++ b/src/test/ui/impossible_range.stderr
@@ -0,0 +1,19 @@
+error[E0586]: inclusive range with no end
+ --> $DIR/impossible_range.rs:11:5
+ |
+LL | ..=;
+ | ^^^ help: use `..` instead
+ |
+ = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
+
+error[E0586]: inclusive range with no end
+ --> $DIR/impossible_range.rs:18:6
+ |
+LL | 0..=;
+ | ^^^ help: use `..` instead
+ |
+ = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0586`.