We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following example:
trait Foo { fn foo(&self); fn bar(&self) where Self: Bar; } trait Bar { } struct Baz; impl Foo for Baz { fn foo(&self) {} }
The example produces the following error:
<anon>:11:1: 13:2 error: not all trait items implemented, missing: `bar` [E0046] <anon>:11 impl Foo for Baz { <anon>:12 fn foo(&self) {} <anon>:13 }
However, Baz doesn’t implement Bar, and presumably it shouldn’t be required to implement bar when implementing Foo.
Baz
Bar
bar
Foo
Regards, Ivan
The text was updated successfully, but these errors were encountered:
The Foo trait here has a bar method that's not implemented.
Sorry, something went wrong.
This appears to be a duplicate of #20021.
No branches or pull requests
Consider the following example:
The example produces the following error:
However,
Baz
doesn’t implementBar
, and presumably it shouldn’t be required to implementbar
when implementingFoo
.Regards,
Ivan
The text was updated successfully, but these errors were encountered: