Generic Mul Bound Error #82046
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
S-has-bisection
Status: a bisection has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Compiler suggests the following bound
Instead, this happened: Compiler suggests the following bound
the above bound doesn't constrain the generic correctly and the compiler will keep requesting you add it despite it already being present.
Meta
The bug also occurs when I use nightly.
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: