]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-elision-return-type-trait.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / lifetime-elision-return-type-trait.stderr
1 error[E0277]: the trait bound `Result<(), _>: Future` is not satisfied
2   --> $DIR/lifetime-elision-return-type-trait.rs:8:13
3    |
4 LL | fn foo() -> impl Future<Item=(), Error=Box<dyn Error>> {
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Future` is not implemented for `Result<(), _>`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0277`.