Confusing spurious E0283 when a generic trait is implemented over &'a T
and a nonexistent type
#106351
Labels
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.
Inspired by https://users.rust-lang.org/t/creating-daemon-processes/86832/3
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=112302a0ad4af6da9c2acf936c4defea
The current output is:
Ideally the output should not include the second error E0283 as it doesn't make sense.
Interestingly, this problem disappears if the lifetime parameter is dropped from the first impl. The code
results in the expected compiler output:
The text was updated successfully, but these errors were encountered: