1 error[E0277]: the trait bound `Result<(), _>: Future` is not satisfied
2 --> $DIR/lifetime-elision-return-type-trait.rs:8:13
4 LL | fn foo() -> impl Future<Item=(), Error=Box<dyn Error>> {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Future` is not implemented for `Result<(), _>`
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0277`.