Incorrect "use of undeclared lifetime name" error with nested async functions #93911
Labels
A-lifetimes
Area: Lifetimes / regions
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Given this Rust code:
the compiler errors out with:
however this code:
compiles successfully.
This seems like it might be related to the expansion of async code internally in rustc but I'm not entirely sure myself.
The nightly I tested is:
The text was updated successfully, but these errors were encountered: