Skip to content

Added a test that checks that unary structs can be mutably borrowed. #12846

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

dmski
Copy link
Contributor

@dmski dmski commented Mar 12, 2014

Closes #11267

flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 13, 2024
Add required parentheses around method receiver

Fix rust-lang#12846

changelog: [`needless_bool`]: Add missing parentheses around method receiver
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mutable borrow of unit-like struct is a weird edge case
2 participants