daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. error[E0277]: the trait bound `(i32, std::string::String, std::string::String, std::string::String, std::string::String): diesel::Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Text), _>` is not satisfied
  2.   --> src/main.rs:51:5
  3.    |
  4. 51 |             .load::<Users>(&conn)
  5.    |              ^^^^ the trait `diesel::Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Text), _>` is not implemented for `(i32, std::string::String, std::string::String, std::string::String, std::string::String)`
  6.    |
  7.    = help: the following implementations were found:
  8.              <(A, B, C, D, E) as diesel::Queryable<(SA, SB, SC, SD, SE), __DB>>
  9.              <(A, B, C, D, E) as diesel::Queryable<diesel::sql_types::Record<(SA, SB, SC, SD, SE)>, diesel::pg::Pg>>
  10.    = note: required because of the requirements on the impl of `diesel::Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Text), _>` for `Users`
  11.    = note: required because of the requirements on the impl of `diesel::query_dsl::LoadQuery<_, Users>` for `diesel::query_builder::SelectStatement<schema::users::table, diesel::query_builder::select_clause::DefaultSelectClause, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::NoWhereClause, diesel::query_builder::order_clause::OrderClause<diesel::expression::operators::Asc<schema::users::columns::id>>>`
  12.  
  13. error[E0277]: the trait bound `MyDatabase: diesel::Connection` is not satisfied
  14.   --> src/main.rs:51:5
  15.    |
  16. 51 |             .load::<Users>(&conn)
  17.    |              ^^^^ the trait `diesel::Connection` is not implemented for `MyDatabase`
  18.    |
  19.    = note: required because of the requirements on the impl of `diesel::query_dsl::LoadQuery<MyDatabase, Users>` for `diesel::query_builder::SelectStatement<schema::users::table, diesel::query_builder::select_clause::DefaultSelectClause, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::NoWhereClause, diesel::query_builder::order_clause::OrderClause<diesel::expression::operators::Asc<schema::users::columns::id>>>`
  20.  
  21. error: aborting due to 2 previous errors
  22.  
  23. For more information about this error, try `rustc --explain E0277`.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top