Closed
Description
Given the following code:
extern crate futures;
use futures::Future;
use std::error::Error;
fn foo() -> impl Future<Item=(), Error=Box<Error>> {
Ok(())
}
Suggest the appropriate syntax to add the 'static
lifetime bound (Box<Error + 'static>
).
CC: https://www.reddit.com/r/rust/comments/9ozzic/expected_lifetime_parameter_with_future_utilizing/