We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
struct Foo<'a, 'b: 'a>(&'a u8, &'b u8); fn foo<'a, 'b>(x: Foo<'a, 'b>, a: &'a u8, b: &'b u8) -> &'a u8 { b }
This compiles, since foo has an implicit 'b: 'a bound inherited from the struct. We should ideally just forbid this.
foo
'b: 'a
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:
Honestly, I think the best route might be to fully expand lifetimes during lowering.
I've already got the validity check in #437
Sorry, something went wrong.
Add lifetimes validity check (fixes rust-diplomat#438)
22ed323
Fixed by 7687c0f
No branches or pull requests
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: