Skip to content

borrow/ref: Update "The ref pattern" for pattern-binding-modes RFC #1166

Closed
@nickolay

Description

@nickolay

As far as I can see, all the use-cases listed in https://doc.rust-lang.org/rust-by-example/scope/borrow/ref.html can avoid using ref when the "match ergonomics" feature from rust-lang/rfcs#2005 is available.

It would be good to mention that and to clarify when/if the "ref pattern" is still useful (I couldn't find the answer to that quickly).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions