error[E0700]: hidden type for impl Trait
captures lifetime that does not appear in bounds
#48
Labels
impl Trait
captures lifetime that does not appear in bounds
#48
Hello,
I was trying to spawn an
async
block inside anotherasync
function withTokio
(which requires theasync
block to beFuture<Output = ()> + Send + 'static
, so I had to borrowother_trait
as'static
as well). Rust tells me somehow my code is an E0700.The minified version of my code as following:
Cargo.toml
file:Error message:
I'm still learning all the pieces of the puzzle of Rust, so I'm not sure about whether it's my mistake or a bug. Sorry for bothering if it's me been dumb :(
PS: I've read the #15, but not sure my problem is related.
Thank you!
The text was updated successfully, but these errors were encountered: