slice::contains is not general in the key like HashMap::get #135019
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
I tried this code:
I expected to see this happen: works
Instead, this happened: slice::contains does not accept a
&str
instead of a&String
, like HashMap::get does. I tried searching for older issues to see if there may be a good reason for this, but I did not find anything.The text was updated successfully, but these errors were encountered: