-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
typeck: show a note about tuple indexing for erroneous tup[i] #33337
Conversation
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
// the case where we show a suggestion | ||
let _ = tup[0]; | ||
//~^ ERROR cannot index a value of type | ||
//~| HELP to access tuple elements, use tuple indexing syntax as shown |
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.
compiletest supports SUGGESTION btw, could you add that entry here? r=me regardless
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.
will do
r? @Manishearth |
@bors r+ |
📌 Commit 8d688e6 has been approved by |
⌛ Testing commit 8d688e6 with merge e2cf62e... |
⛄ The build was interrupted to prioritize another pull request. |
@bors r+ |
📌 Commit b48b509 has been approved by |
typeck: show a note about tuple indexing for erroneous tup[i] Fixes: #27842
Fixes: #27842