-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Tutorial ambiguity or mistake re: destructuring & let #11113
Comments
That does, but this doesn't:
which is the intended meaning. Can you suggest a phrasing which would've been unambiguous for you? |
How about simply removing the last sentence? That |
Tricky - this seems to suggest that you can destructure literals with |
Hmm? The thing being matched (on the RHS of |
part of #11755 |
I've made a PR to improve this. Thoughts? |
Yep that makes sense. |
…ity, r=Manishearth Set `unnecessary_cast` suggestion to `MaybeIncorrect` for pointer casts Closes rust-lang#11113 changelog: none
From the tutorial:
(emphasis mine)
This code compiles and behaves as expected:
Have not included a pull request, as I'm not sure what the meaning of the passage is otherwise.
The text was updated successfully, but these errors were encountered: