Skip to content

&5i + 5i compiles but 5i + &5i or &5i == 5i don't #8895

Closed
@ben0x539

Description

@ben0x539

Auto-borrowing or auto-dereferencing are confusing me here, but this feels somewhat weird and inconsistent.

I wonder why all the operator overloads need to implemented methods rather than associatied functions where all the operands could be equally unsurprising arguments and not half arguments, half method receivers, but I'm not sure how applicable that is to this nitpick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions