-
Notifications
You must be signed in to change notification settings - Fork 13.3k
TRPL: Borrow and AsRef #24996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRPL: Borrow and AsRef #24996
Conversation
foo(&i); | ||
foo(&mut i); | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could include the output here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Sorry for the long delay... This looks good! Other than making sure to emphasize that these are specifically for use with generics, you should also mention that |
These two traits are commonly confused. As such, explain the difference. Fixes rust-lang#24163
@bors: r=aturon rollup |
📌 Commit e780fb2 has been approved by |
These two traits are commonly confused. As such, explain the difference. Fixes rust-lang#24163 r? @aturon
These two traits are commonly confused. As such, explain the difference. Fixes rust-lang#24163 r? @aturon
These two traits are commonly confused. As such, explain the difference.
Fixes #24163
r? @aturon