You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be worked around by creating a blanket implementation for the trait Backend for all types that implement SmartContract + ProofSystemCompiler + Default + Debug but it's not ideal.
Another workaround is to have each function with a T: Backend bound replaced with the inherited bounds instead: T: SmartContract + ProofSystemCompiler + Default + Debug
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
# Description
## Problem
Resolves#3949
## Summary
Still pending documentation.
## Additional Context
I copied part of the documentation from
[here](https://practice.course.rs/generics-traits/advanced-traits.html#supertraits),
I hope it's fine.
## Documentation\*
Check one:
- [ ] No documentation needed.
- [x] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [ ] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
---------
Co-authored-by: jfecher <jake@aztecprotocol.com>
Problem
We'd like to be able to define a trait as a combination of other traits.
Happy Case
The following syntax should compile:
Alternatives Considered
It can be worked around by creating a blanket implementation for the trait
Backend
for all types that implementSmartContract + ProofSystemCompiler + Default + Debug
but it's not ideal.Another workaround is to have each function with a
T: Backend
bound replaced with the inherited bounds instead:T: SmartContract + ProofSystemCompiler + Default + Debug
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: