about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0030-teach.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0030-teach.rs')
-rw-r--r--tests/ui/error-codes/E0030-teach.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0030-teach.rs b/tests/ui/error-codes/E0030-teach.rs
new file mode 100644
index 00000000000..8caa4f0931d
--- /dev/null
+++ b/tests/ui/error-codes/E0030-teach.rs
@@ -0,0 +1,9 @@
+// compile-flags: -Z teach
+
+fn main() {
+    match 5u32 {
+        1000 ..= 5 => {}
+        //~^ ERROR lower range bound must be less than or equal to upper
+        //~| ERROR lower range bound must be less than or equal to upper
+    }
+}