-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Type inference issue when destructuring a struct #8783
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
Comments
nominating feature complete |
In general we require known types upon entering pattern matching, but you are correct it is stricter than necessary. |
Just a bug |
Visiting for triage. Wouldn't say it's a bug, per se, more a limitation in the current system. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
May 5, 2022
Move only_used_in_recursion to nursery r? `@llogiq` I still think this is the right thing to do for this lint. See: rust-lang#8782 I want to get this merged before the sync on Thursday, because I want to backport this and the last fix rust-lang#8691 to beta. changelog: Move [`only_used_in_recursion`] to nursery
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The program
fails to compile with the following error message:
even though the compiler should be able to infer that it's looking for the
FromStr
implementation forUrl
.The text was updated successfully, but these errors were encountered: