-
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
Regression: Using T: Bound
in method impl
and where T: Bound
in method declaration yields an error
#20107
Labels
A-typesystem
Area: The type system
Comments
Yes, I didn't anticipate this, but it's basically a dup of #20020. Not quite a dup, but cleaning up the code that #20020 says we ought to cleanup will fix this too. (In particular, #20020 is more about cases that should be rejected but will be accepted, but I didn't realize there would be the opposite too.) |
I added this as a test case on my working branch for #20020. |
bors
added a commit
that referenced
this issue
Jan 15, 2015
…sakis This should fix both #20020 and #20107. This moves out the code into its own file. I have a couple concerns that can either be addressed in this PR or in a future one. - The error reporting for the fulfillment context should be span aware because currently it is attached to the top of the file which is less then desirable. - There is a failure in the test file: run-pass/issue-2611-3.rs, this seems like it should be a failure to me, but I am not sure. As a nit I'm not enthused about the file name, and am open to better suggestions. r? @nikomatsakis
Should be closed now by #20290 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
STR
Output
Version
Doesn't compile on:
This used to compile in:
These 4 formms are equivalent and should continue to be accepted. Some changes to the
where
clause parser landed yesterday (#20073), perhaps that caused the regression?cc @nikomatsakis @jroesch
The text was updated successfully, but these errors were encountered: