-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
lifetime rules are overly restricted in 1.65 nightly / beta #102029
Comments
@rustbot label +regression-untriaged, +regression-from-stable-to-beta +A-lifetimes |
Indeed this was changed due to a correctness fix. For clarity, you code can be fixed by changing |
I thought |
|
I tried this code:
The rustc in 1.63 compiles the code successfully while rustc 1.65.0-nightly (cf9ed0d 2022-09-15) fails to compile it:
Are there any changes in the language specifications that have tighten the lifetime rules?
The text was updated successfully, but these errors were encountered: