-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Overflow evaluating a trait requirement #111313
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Comments
For what it's worth, this does compile with the new trait solver ( |
jyn514
added
A-trait-system
Area: Trait system
T-types
Relevant to the types team, which will review and decide on the PR/issue.
labels
May 26, 2023
Cannot find the trait-solver flag in nightly.
|
@npuichigo: Those are cargo's flags, but also I don't recommend using the new trait solver yet. It will probably cause you a lot more problems in other code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code (playground):
I think this code should compile. However, I got the following compile error:
Changing
A(Add::add(self, rhs.0))
toA(self + rhs.0)
orA(Add::<T>::add(self, rhs.0))
results in a successful compilation. Maybe related to #39959?Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: