Skip to content

Need backtracking to make ~str == &str work #3368

Closed
@pcwalton

Description

@pcwalton

It's unsightly to have to keep writing == ~"foo" when comparing strings. As far as I can tell, the problem is just the lack of backtracking in method lookup, because there is a viable implementation of Eq here; it involves borrowing of the LHS, however, so the ~str implementation will come first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions