Skip to content

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

Closed

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).

Activity

  1. marioidival commented on Jan 21, 2024

    @marioidival
    Member

    Hi, I'm closing this issue just to clean up the items that already exist. If you think this issue makes sense to stay open, please create a new issue with updated information and mention this one.

    thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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