Can you make "somestr".trim_matches(char::is_ascii_punctuation) compile too ? it compiles with char::is_numeric #57307
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
this works:
but this doesn't:
sig for is_numeric is:
And for is_ascii_punctuation is:
So in order to make that work, I've had to do this:
Full code (playground):
The text was updated successfully, but these errors were encountered: