Hello, I ran into a problem using <'_> lifetime with async struct methods, here is the example:
struct Foo<'a> { swag: &'a i32 }
impl Foo<'_> {
async fn bar(&self) -> i32 {
1337
}
}
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)
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 scopeEverything is fine if I use explicit lifetime like
'a.Version: 1.39 Nighly (2019-09-19 9b9d2af on playground)