summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0029.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0029.stderr')
-rw-r--r--src/test/ui/error-codes/E0029.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0029.stderr b/src/test/ui/error-codes/E0029.stderr
new file mode 100644
index 000000000..f7250b39d
--- /dev/null
+++ b/src/test/ui/error-codes/E0029.stderr
@@ -0,0 +1,12 @@
+error[E0029]: only `char` and numeric types are allowed in range patterns
+ --> $DIR/E0029.rs:5:9
+ |
+LL | "hello" ..= "world" => {}
+ | -------^^^^^-------
+ | | |
+ | | this is of type `&'static str` but it should be `char` or numeric
+ | this is of type `&'static str` but it should be `char` or numeric
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0029`.