-
Notifications
You must be signed in to change notification settings - Fork 13.4k
"Parameter type may not live long enough" compilation error for async-fn-in-trait #102682
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This is probably actually the same issue as the other one, and as #102552 (comment). |
Ah, so #102681 and 102552#issuecomment are all the same? Okay, I'm going to use this one as the master one and link it in all 4 tests. |
Yeah, please don't remove the tests but I don't actually know if all of these outlives errors are valid errors or not... best to just lump them into one issue for now. |
Thanks, and sorry for the confusion. |
Gotcha, yeah I'll keep all of the tests in the PR! :) |
Encountered in these test cases:
async-generics.rs
async-generics-and-bounds.rs
async-lifetimes-and-bounds.rs
From #102642
Here is
async-generics.rs
I expected to see this happen: Successful compilation
Instead, this happened:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: