Trait bound claims missing requirements despite those bounds being implied by the trait #86635
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code: Playground Link
I expected to see this happen: Only one error:
Foo
cannot be implemented forBar
, the function should compile.Instead, this happened: The function complains about missing bounds, despite the fact that those bounds should be implicit by the requirements of the trait.
Zulip Discussion: Zulip
Meta
Using 1.53.0 on the playground, bug still present on latest nightly.
The text was updated successfully, but these errors were encountered: