-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Rust: Add type inference test cases for tuples. #20004
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
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
hvitved
left a comment
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.
Just double checking: Did you run rustfmt --edition 2024 main.rs?
|
Just done. |
|
FYI: I also created a similar PR #20003 . Currently type inference does not work for pattern matches (including tuples). |
Seems like they're different enough we should have both. |
Add type inference test cases for tuples. We worked around this in https://github.com/github/codeql/pull/19946/files#r2192987950 . @hvitved FYI.