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
As mentioned in #5739, AsTraitPaths (<T as Trait>::Type) currently aren't allowed in arithmetic generics.
<T as Trait>::Type
We should allow these in arithmetic generics to allow for code like:
impl<A, B> Serialize for (A, B) where A: Serialize, B: Serialize { let Size = <A as Serialize>::Size + <B as Serialize>::Size; ... }
Once we allow for implicit associated types as well.
These generics can be made explicit instead:
impl<A, B, let AS: u32, let BS: u32> Serialize for (A, B) where A: Serialize<Size = AS>, B: Serialize<Size = BS> { let Size = AS + BS; ... }
No response
None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
As mentioned in #5739, AsTraitPaths (
<T as Trait>::Type
) currently aren't allowed in arithmetic generics.Happy Case
We should allow these in arithmetic generics to allow for code like:
Once we allow for implicit associated types as well.
Workaround
These generics can be made explicit instead:
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: