-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Improve impl implements different signature from trait error message #42706
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-diagnostics
Working group: Diagnostics
Comments
19 tasks
@nikomatsakis, maybe this needs mentoring? |
JohnTitor
added a commit
to JohnTitor/rust
that referenced
this issue
Oct 28, 2019
…nikomatsakis Custom lifetime error for `impl` item doesn't conform to `trait` Partly addresses rust-lang#42706, rust-lang#41343, fix rust-lang#40900.
Centril
added a commit
to Centril/rust
that referenced
this issue
Oct 29, 2019
…nikomatsakis Custom lifetime error for `impl` item doesn't conform to `trait` Partly addresses rust-lang#42706, rust-lang#41343, fix rust-lang#40900.
tmandry
added a commit
to tmandry/rust
that referenced
this issue
Oct 30, 2019
…nikomatsakis Custom lifetime error for `impl` item doesn't conform to `trait` Partly addresses rust-lang#42706, rust-lang#41343, fix rust-lang#40900.
Triage: here's the error today:
|
Current error:
|
Current output:
This already indicates that the lifetime should be added, so should be good enough to close this issue. |
# for free
to join this conversation on GitHub.
Already have an account?
# 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.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-diagnostics
Working group: Diagnostics
We need to improve the error message for the second case.
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: