Async struct method, <_'> lifetime shadowing #64630
Labels
A-async-await
Area: Async & Await
A-lifetimes
Area: Lifetimes / regions
AsyncAwait-Polish
Async-await issues that are part of the "polish" area
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hello, I ran into a problem using
<'_>
lifetime with async struct methods, here is the example:The error is:
error[E0496]: lifetime name
'_shadows a lifetime name that is already in scope
Everything is fine if I use explicit lifetime like
'a
.Version: 1.39 Nighly (2019-09-19 9b9d2af on playground)
The text was updated successfully, but these errors were encountered: