Created
March 10, 2018 19:32
-
-
Save piedoom/f8468d814acce535dbf76b233f76099d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
warning: Hard linking files in the incremental compilation cache failed. Copying files instead. Consider moving the cache directory to a file system which supports hard linking in session dir `/vagrant/target/debug/incremental/resamplr-uuwdn7ep95ho/s-ez1onym2h6-14feiei-working` | |
warning: unused `#[macro_use]` import | |
--> src/main.rs:19:1 | |
| | |
19 | #[macro_use] | |
| ^^^^^^^^^^^^ | |
| | |
= note: #[warn(unused_imports)] on by default | |
warning: unused import: `Value` | |
--> src/controllers/products.rs:3:28 | |
| | |
3 | use rocket_contrib::{Json, Value}; | |
| ^^^^^ | |
error[E0277]: the trait bound `usize: diesel::Expression` is not satisfied | |
--> src/controllers/products.rs:16:23 | |
| | |
16 | Json(products::table.find(id).load::<Product>(&conn)) | |
| ^^^^ the trait `diesel::Expression` is not implemented for `usize` | |
| | |
= note: required because of the requirements on the impl of `diesel::Expression` for `diesel::expression::operators::Eq<schema::products::columns::id, usize>` | |
= note: required because of the requirements on the impl of `diesel::EqAll<usize>` for `schema::products::columns::id` | |
= note: required because of the requirements on the impl of `diesel::query_dsl::filter_dsl::FindDsl<usize>` for `schema::products::table` | |
error[E0277]: the trait bound `usize: diesel::expression::NonAggregate` is not satisfied | |
--> src/controllers/products.rs:16:23 | |
| | |
16 | Json(products::table.find(id).load::<Product>(&conn)) | |
| ^^^^ the trait `diesel::expression::NonAggregate` is not implemented for `usize` | |
| | |
= note: required because of the requirements on the impl of `diesel::expression::NonAggregate` for `diesel::expression::operators::Eq<schema::products::columns::id, usize>` | |
= note: required because of the requirements on the impl of `diesel::query_dsl::filter_dsl::FilterDsl<diesel::expression::operators::Eq<schema::products::columns::id, usize>>` for `diesel::query_builder::SelectStatement<schema::products::table>` | |
error[E0599]: no method named `load` found for type `diesel::query_builder::SelectStatement<schema::products::table, diesel::query_builder::select_clause::DefaultSelectClause, diesel::query_builder::distinct_clause::NoDistinctClause, diesel::query_builder::where_clause::WhereClause<diesel::expression::operators::Eq<schema::products::columns::id, usize>>>` in the current scope | |
--> src/controllers/products.rs:16:32 | |
| | |
16 | Json(products::table.find(id).load::<Product>(&conn)) | |
| ^^^^ | |
| | |
= help: items from traits can only be used if the trait is in scope | |
= note: the following trait is implemented but not in scope, perhaps add a `use` for it: | |
candidate #1: `use diesel::RunQueryDsl;` | |
error: aborting due to 3 previous errors | |
error: Could not compile `resamplr`. | |
To learn more, run the command again with --verbose. | |
error: Recipe `dev-run` failed on line 25 with exit code 101 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment