Compiler asks for already present bound #79629
Labels
A-associated-items
Area: Associated items such as associated types and consts.
A-traits
Area: Trait system
C-bug
Category: This is a bug.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
While working on RustCrypto/stream-ciphers#195. I got roughly the following code:
It compiles without issues. The default method impl will not be present in the final code, I just use it to show that the bounds are correct.
But if we are to overwrite the
load
method in theBar
impl by simply copying the default impl:Playground
Compiler will return the following compilation errors:
Replacing
Div<Self::Size>
withDiv<U16>
or even with explicitDiv<Uint<..>>
does not fix the error.The text was updated successfully, but these errors were encountered: