-
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
Poor diagnostics for associated type mismatch on inherent method. #86377
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jonhoo
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
Jun 16, 2021
JohnTitor
added
the
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
label
Jul 1, 2021
Current output:
|
With #106702, the first case is now
|
With #106703, the second case is now
|
estebank
added a commit
to estebank/rust
that referenced
this issue
Jan 11, 2023
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 12, 2023
…errors Conserve cause of `ImplDerivedObligation` in E0599 CC rust-lang#86377.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 14, 2023
…ompiler-errors Tweak E0599 and elaborate_predicates CC rust-lang#86377.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 14, 2023
…ompiler-errors Tweak E0599 and elaborate_predicates CC rust-lang#86377.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jan 14, 2023
…ompiler-errors Tweak E0599 and elaborate_predicates CC rust-lang#86377.
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
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output (for the indicated bad case) is:
Ideally the output should look like (the current nightly output for the indicated good case):
Actually pointing at the associated type and where the requirement that it be
Res
comes from would also be helpful to make it perfect.The text was updated successfully, but these errors were encountered: