rust/tests/ui/error-codes/E0029.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
480 B
Plaintext
Raw Normal View History

2020-09-15 19:34:58 +00:00
error[E0029]: only `char` and numeric types are allowed in range patterns
2018-12-25 15:56:47 +00:00
--> $DIR/E0029.rs:5:9
2018-02-08 03:35:35 +00:00
|
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
2018-02-08 03:35:35 +00:00
error: aborting due to previous error
2018-02-08 03:35:35 +00:00
For more information about this error, try `rustc --explain E0029`.