Skip to content

Instantly share code, notes, and snippets.

@andoriyu
Created January 25, 2018 20:25
Show Gist options
  • Save andoriyu/7ab4d2a43ce8399916d012906d2ac584 to your computer and use it in GitHub Desktop.
Save andoriyu/7ab4d2a43ce8399916d012906d2ac584 to your computer and use it in GitHub Desktop.
Compiling bobby v0.1.0 (file:///usr/home/andoriyu/Dev/Heaven/bobby)
warning: unused `#[macro_use]` import
--> src/main.rs:1:1
|
1 | #[macro_use] extern crate actix;
| ^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
warning: unused import: `self`
--> src/main.rs:35:23
|
35 | use futures::future::{self, Future};
| ^^^^
warning: unused import: `Response`
--> src/connection/gdax/actors.rs:3:36
|
3 | use reqwest::{Method, Client, Url, Response};
| ^^^^^^^^
warning: unused import: `Context`
--> src/services.rs:2:29
|
2 | use actix::{Actor, Handler, Context};
| ^^^^^^^
error[E0191]: the value of the associated type `Result` (from the trait `actix::Handler`) must be specified
--> src/main.rs:64:23
|
64 | let addr: Address<services::TradingApi> = GdaxTradingApi::new(&log, boxed.clone()).start();
| ^^^^^^^^^^^^^^^^^^^^ missing associated type `Result` value
error[E0191]: the value of the associated type `Context` (from the trait `actix::Actor`) must be specified
--> src/main.rs:64:23
|
64 | let addr: Address<services::TradingApi> = GdaxTradingApi::new(&log, boxed.clone()).start();
| ^^^^^^^^^^^^^^^^^^^^ missing associated type `Context` value
error[E0277]: the trait bound `services::TradingApi + 'static: actix::Actor` is not satisfied
--> src/main.rs:64:15
|
64 | let addr: Address<services::TradingApi> = GdaxTradingApi::new(&log, boxed.clone()).start();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::Actor` is not implemented for `services::TradingApi + 'static`
|
= note: required by `actix::Address`
error[E0038]: the trait `services::TradingApi` cannot be made into an object
--> src/main.rs:64:15
|
64 | let addr: Address<services::TradingApi> = GdaxTradingApi::new(&log, boxed.clone()).start();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `services::TradingApi` cannot be made into an object
|
= note: the trait cannot require that `Self : Sized`
= note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses
error[E0277]: the trait bound `connection::gdax::actors::GdaxTradingApi: actix::ActorAddress<connection::gdax::actors::GdaxTradingApi, actix::Address<services::TradingApi + 'static>>` is not satisfied
--> src/main.rs:64:88
|
64 | let addr: Address<services::TradingApi> = GdaxTradingApi::new(&log, boxed.clone()).start();
| ^^^^^ the trait `actix::ActorAddress<connection::gdax::actors::GdaxTradingApi, actix::Address<services::TradingApi + 'static>>` is not implemented for `connection::gdax::actors::GdaxTradingApi`
error[E0277]: the trait bound `services::TradingApi + 'static: actix::Actor` is not satisfied
--> src/main.rs:64:47
|
64 | let addr: Address<services::TradingApi> = GdaxTradingApi::new(&log, boxed.clone()).start();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::Actor` is not implemented for `services::TradingApi + 'static`
|
= note: required by `actix::Address`
error[E0038]: the trait `services::TradingApi` cannot be made into an object
--> src/main.rs:64:47
|
64 | let addr: Address<services::TradingApi> = GdaxTradingApi::new(&log, boxed.clone()).start();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `services::TradingApi` cannot be made into an object
|
= note: the trait cannot require that `Self : Sized`
= note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses
error: aborting due to 7 previous errors
error: Could not compile `bobby`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment