-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
ICE: ReEarlyBound in methods containing Self #24227
Comments
For the record, the above code works with alpha2. It's only in the last couple of days that it has happened. |
Adding to the record, this does not appear to be a problem in beta: http://is.gd/ZLVqTF, but it is a problem in nightly: http://is.gd/0NiZTx |
I also still have this problem in the nightly. |
Still a problem 1.0.0-stable, fixed in nightly? |
It compiles with |
On the playground it does indeed seem to be fixed with nightly. Stable and beta still ICE, but I guess we can call it fixed. Should I PR a test for future-proofing? |
Feel free @Munksgaard! I'm going to close this anyway, but you're more than welcome to add a test in a PR! |
I've added a test in #26434 |
I've encountered an ICE when methods on structs using lifetime parameters try create a value of type Self.
The text was updated successfully, but these errors were encountered: