-
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
Regression in interaction between lifetime parameter and defaulted type parameter #49344
Comments
Oops, it seems I completely forgot to paste the resulting error message:
Sorry about that. As mentioned in the original issue the problem can be worked around by not having the type parameter |
I'm guessing this is caused by #46785 but I'm not sure yet |
cc @leodasvacas -- I think was something of an unexpected interaction, do you agree? I think we are probably checking that the default value ( |
triage: P-high |
Yes it's a bug in that PR, we should not be doing this check in predicates with lifetimes, I'll work on a fix. |
Fix regression in defaults #49344 Fixes #49344 by not checking the well-formedness wrt defaults of predicates that contain lifetimes, which is consistent with not checking generic predicates. r? @nikomatsakis
[beta] Backport fix for regression in defaults This proposes a backport of #49704, which fixes a regression that affects beta. r? @nikomatsakis
The
mpi
crate contains (approximately) the following code that used to work before nightly-2018-03-02:The newest nightly compiler that successfully compiles this is:
It no longer compiles on:
Was this not supposed to ever work or is this a regression?
The text was updated successfully, but these errors were encountered: