Closed
Description
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
Labels
No labels