Skip to content

Make variable mutable to allow mutable reference #16614

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

Merged
merged 1 commit into from
Aug 20, 2014

Conversation

cdwort
Copy link
Contributor

@cdwort cdwort commented Aug 19, 2014

This appears to be a minor typo. This example implies that x is mutable otherwise the compiler would error on the line before the comment implies.

Please let me know if I'm missing something - I'd love to learn what I got wrong!

@steveklabnik
Copy link
Member

You are 100% correct. This was missed because the test was marked ignore, since it's not supposed to work in the first place. Thanks!

bors added a commit that referenced this pull request Aug 20, 2014
This appears to be a minor typo. This example implies that x is mutable otherwise the compiler would error on the line before the comment implies.

Please let me know if I'm missing something - I'd love to learn what I got wrong!
@bors bors closed this Aug 20, 2014
@bors bors merged commit 0493fb2 into rust-lang:master Aug 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants