-
Notifications
You must be signed in to change notification settings - Fork 47
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
Either forbid or support implied bounds from type definitions #438
Comments
Honestly, I think the best route might be to fully expand lifetimes during lowering. I've already got the validity check in #437 |
Manishearth
added a commit
to Manishearth/diplomat
that referenced
this issue
Feb 29, 2024
Fixed by 7687c0f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This compiles, since
foo
has an implicit'b: 'a
bound inherited from the struct. We should ideally just forbid this.If we do so, a lot of the cases where borrowing code needs to do "all longer lifetimes" can be cleaned up as well.
The text was updated successfully, but these errors were encountered: