-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Document the ref keyword #73645
Document the ref keyword #73645
Conversation
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
@rustbot modify labels: T-doc,C-enhancement |
f5f6d90
to
2853448
Compare
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.
r=me once nits are fixed
@bors r+ rollup=always |
📌 Commit 79f052b has been approved by |
🌲 The tree is currently closed for pull requests below priority 5, this pull request will be tested once the tree is reopened |
☀️ Test successful - checks-actions, checks-azure |
Partial fix for #34601.
This documents the
ref
keyword with two examples, one failing to compile because theref
keyword is missing, and the same example fixed with the keyword inserted in the correct place.It also explains (very very rapidly) the differences between
&
andref
.I put a link to the best place I could find in the Reference but there may be something better that I didn't find.