-
Couldn't load subscription status.
- Fork 13.9k
Fix some mistakes in HRTB docs #37255
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
Conversation
The example code for higher-ranked trait bounds on closures had an unnecessary `mut` which was confusing, and the text referred to an mutable reference which does not exist in the code (and isn't needed). Removed the `mut`s and fixed the text to better describe the actual error for the failing example.
|
@bors: delegate=kmcallister I think this looks good. What do you think, @kmcallister ? |
|
✌️ @kmcallister can now approve this pull request |
|
@bors: r+ rollup |
|
📌 Commit f89ba5d has been approved by |
|
⌛ Testing commit f89ba5d with merge 6c17a05... |
|
💔 Test failed - auto-mac-64-opt-rustbuild |
|
@bors: retry |
|
⌛ Testing commit f89ba5d with merge bacff0a... |
|
💔 Test failed - auto-mac-64-opt-rustbuild |
|
@bors: retry |
Fix some mistakes in HRTB docs The example code for higher-ranked trait bounds on closures had an unnecessary `mut` which was confusing, and the text referred to an mutable reference which does not exist in the code (and isn't needed). Removed the `mut`s and fixed the text to better describe the actual error for the failing example. Thanks to csd_ on IRC for pointing out these problems! r? @steveklabnik
Fix some mistakes in HRTB docs The example code for higher-ranked trait bounds on closures had an unnecessary `mut` which was confusing, and the text referred to an mutable reference which does not exist in the code (and isn't needed). Removed the `mut`s and fixed the text to better describe the actual error for the failing example. Thanks to csd_ on IRC for pointing out these problems! r? @steveklabnik
Fix some mistakes in HRTB docs The example code for higher-ranked trait bounds on closures had an unnecessary `mut` which was confusing, and the text referred to an mutable reference which does not exist in the code (and isn't needed). Removed the `mut`s and fixed the text to better describe the actual error for the failing example. Thanks to csd_ on IRC for pointing out these problems! r? @steveklabnik
The example code for higher-ranked trait bounds on closures had an unnecessary
mutwhich was confusing, and the text referred to an mutable reference which does not exist in the code (and isn't needed). Removed themuts and fixed the text to better describe the actual error for the failing example.Thanks to csd_ on IRC for pointing out these problems!
r? @steveklabnik