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