Skip to content

Instantly share code, notes, and snippets.

View panicfarm's full-sized avatar

Alec Matusis panicfarm

View GitHub Profile
--> 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>>;

Keybase proof

I hereby claim:

  • I am panicfarm on github.
  • I am matusis (https://keybase.io/matusis) on keybase.
  • I have a public key ASDXdnTN2rcH8Uidkb_6yLHTX2SFUAyQTlSeJqiDKrirtgo

To claim this, I am signing this object: