-
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
Rust complains about mismatched types, but the types are identical #89923
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jimblandy
added
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Oct 15, 2021
|
Alexendoo
added
the
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
label
Oct 15, 2021
The difference is that it is expecting |
Triage: output hasn't changed
Running with
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When I compile the following code:
I get the error message:
I'm sure the 'expected' and 'found' types are indeed different somehow, but there's nothing in the output that would allow us to distinguish them.
EDIT: Output from
rustc -vV
:The text was updated successfully, but these errors were encountered: