]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/lifetimes/lifetime-elision-return-type-trait.stderr
Check opaque types satisfy their bounds
[rust.git] / src / test / ui / lifetimes / lifetime-elision-return-type-trait.stderr
index e43fb6d0edfb9e730892d6cb0a3eef0fb090b8d2..c3d597bec2e406e7a86e2099631664f756430972 100644 (file)
@@ -3,11 +3,6 @@ error[E0277]: the trait bound `std::result::Result<(), _>: Future` is not satisf
    |
 LL | fn foo() -> impl Future<Item=(), Error=Box<dyn Error>> {
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Future` is not implemented for `std::result::Result<(), _>`
-LL |
-LL |     Ok(())
-   |     ------ this returned value is of type `std::result::Result<(), _>`
-   |
-   = note: the return type of a function must have a statically known size
 
 error: aborting due to previous error