-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Trait inheritance isn't considered in trait bounds checking #13155
Labels
A-typesystem
Area: The type system
Comments
This no doubt relates to how type contents handles superbounds and so on. I'd be inclined not to try and fix this until opt-in builtin traits are done. |
cc me This is a pretty hairy issue, ergonomics wise. |
This is going to be fixed soon, I suspect, as I am reworking all of this mechanism at the moment as part of opt-in-builtin-kinds and trait reform. |
ricky26
added a commit
to ricky26/rust
that referenced
this issue
Nov 23, 2014
This was fixed quite some time ago. |
JohnTitor
pushed a commit
to JohnTitor/rust
that referenced
this issue
Sep 6, 2022
…chievink fix: Lower float literals with underscores Fixes rust-lang#13155 (the problem was the `PI` is defined with `_f64` suffix). `PI` is still truncated, though, because `f64` cannot represent the value with full precision.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would expect this code to compile because any instance of trait
A
must already ascribe toSend
. This caused some excessive verbosity in #13050.cc @nikomatsakis
cc @pnkfelix
The text was updated successfully, but these errors were encountered: