where
clause hides f64: Div<f64>
impl
#89910
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code:
Results in this error:
But I expected it to compile fine, since
f64: Div<f64, Output = f64>
also exists unconditionally. It seems that the bound onf64
hides the existingf64: Div<f64>
.This seems to happen on all versions of Rust since 1.0.
The text was updated successfully, but these errors were encountered: