Created
October 19, 2017 15:47
-
-
Save kivikakk/530dc02a9d5ac900bb57e16301dc254c 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
| Compiling diesel_ltree v0.1.0 (file:///Users/kivikakk/kivikakk/diesel_ltree) | |
| error[E0277]: the trait bound `functions::ltree2text_t<functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>>: diesel::query_builder::Query` is not satisfied | |
| --> src/tests.rs:92:5 | |
| | | |
| 92 | LoadDsl::load(ltree2text(lca(vec![text2ltree("1.2.2.3"), text2ltree("1.2.3")])), &connection); | |
| | ^^^^^^^^^^^^^ the trait `diesel::query_builder::Query` is not implemented for `functions::ltree2text_t<functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>>` | |
| | | |
| = note: required because of the requirements on the impl of `diesel::query_builder::AsQuery` for `functions::ltree2text_t<functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>>` | |
| = note: required because of the requirements on the impl of `diesel::LoadDsl<_>` for `functions::ltree2text_t<functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>>` | |
| = note: required by `diesel::LoadDsl::load` | |
| error[E0277]: the trait bound `for<'a> &'a [functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>]: diesel::types::ToSql<diesel::types::Array<types::Ltree>, diesel::pg::Pg>` is not satisfied | |
| --> src/tests.rs:92:5 | |
| | | |
| 92 | LoadDsl::load(ltree2text(lca(vec![text2ltree("1.2.2.3"), text2ltree("1.2.3")])), &connection); | |
| | ^^^^^^^^^^^^^ the trait `for<'a> diesel::types::ToSql<diesel::types::Array<types::Ltree>, diesel::pg::Pg>` is not implemented for `&'a [functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>]` | |
| | | |
| = help: the following implementations were found: | |
| <&'a [u8] as diesel::types::ToSql<diesel::types::Binary, DB>> | |
| <&'a [T] as diesel::types::ToSql<diesel::types::Array<ST>, diesel::pg::Pg>> | |
| <&'a [T] as diesel::types::ToSql<diesel::types::Nullable<diesel::types::Array<ST>>, diesel::pg::Pg>> | |
| <&'a [u8] as diesel::types::ToSql<diesel::types::Nullable<diesel::types::Binary>, DB>> | |
| = note: required because of the requirements on the impl of `diesel::types::ToSql<diesel::types::Array<types::Ltree>, diesel::pg::Pg>` for `std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>` | |
| = note: required because of the requirements on the impl of `diesel::query_builder::QueryFragment<diesel::pg::Pg>` for `diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>` | |
| = note: required because of the requirements on the impl of `for<'a> diesel::query_builder::QueryFragment<diesel::pg::Pg>` for `&'a diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>` | |
| = note: required because of the requirements on the impl of `diesel::query_builder::QueryFragment<diesel::pg::Pg>` for `functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>` | |
| = note: required because of the requirements on the impl of `for<'a> diesel::query_builder::QueryFragment<diesel::pg::Pg>` for `&'a functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>` | |
| = note: required because of the requirements on the impl of `diesel::query_builder::QueryFragment<diesel::pg::Pg>` for `functions::ltree2text_t<functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>>` | |
| = note: required because of the requirements on the impl of `diesel::LoadDsl<_>` for `functions::ltree2text_t<functions::lca_t<diesel::expression::bound::Bound<diesel::types::Array<types::Ltree>, std::vec::Vec<functions::text2ltree_t<diesel::expression::bound::Bound<diesel::types::Text, &str>>>>>>` | |
| = note: required by `diesel::LoadDsl::load` | |
| error: aborting due to 2 previous errors | |
| error: Could not compile `diesel_ltree`. | |
| To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment