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
Currently traits are only useful when used with generics. But it should also be possible to use them like this:
pub struct Bar {} impl SomeTrait for Bar { fn foo(&self) { ... } } trait SomeTrait { fn foo(&self); } ... let bar: Bar = Bar(); bar.foo();
🔪
The text was updated successfully, but these errors were encountered:
Allow trait methods to be called when trait is in scope
d3a0e74
Closes ethereum#757
d0264cf
92931cd
No branches or pull requests
What is wrong?
Currently traits are only useful when used with generics. But it should also be possible to use them like this:
How can it be fixed
🔪
The text was updated successfully, but these errors were encountered: