diff options
Diffstat (limited to 'tests/ui/error-codes/E0029.stderr')
-rw-r--r-- | tests/ui/error-codes/E0029.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0029.stderr b/tests/ui/error-codes/E0029.stderr new file mode 100644 index 000000000..f7250b39d --- /dev/null +++ b/tests/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`. |