Created
July 27, 2020 23:58
-
-
Save panicfarm/c05e07cbcdf5eb3c8e9c8c7ce1ef9fa8 to your computer and use it in GitHub Desktop.
Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--> src/main.rs:49:19 | |
| | |
49 | type Future = future::Future<Output = Result<Self::Response, Self::Error>>; | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn future::Future<Output = Result<Self::Response, Self::Error>>` | |
| | |
= note: `#[warn(bare_trait_objects)]` on by default | |
error[E0277]: the size for values of type `(dyn std::future::Future<Output = std::result::Result<HelloWorld, std::io::Error>> + 'static)` cannot be known at compilation time --> src/main.rs:49:19 | |
| | |
49 | type Future = future::Future<Output = Result<Self::Response, Self::Error>>; | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
| | |
::: /home/alecm/.cargo/registry/src/github.com-1ecc6299db9ec823/tower-service-0.3.0/src/lib.rs:207:5 | |
| | |
207 | type Future: Future<Output = Result<Self::Response, Self::Error>>; | |
| ------------------------------------------------------------------ required by this bound in `tower_service::Service` | |
| | |
= help: the trait `std::marker::Sized` is not implemented for `(dyn std::future::Future<Output = std::result::Result<HelloWorld, std::io::Error>> + 'static)` | |
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> | |
error: aborting due to previous error; 2 warnings emitted | |
For more information about this error, try `rustc --explain E0277`. | |
error: could not compile `graphserver`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment