-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
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
where
clause hides f64: Div<f64>
impl
#89910
Labels
A-traits
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.
Comments
m-ou-se
added
A-traits
Area: Trait system
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
labels
Oct 15, 2021
Some more data points:
|
|
I think this is part of what #41756 is talking about. |
Chasing that conversation leads to a more direct dupe, #24066. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-traits
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: