Skip to content

error - "cargo build" #23

@Bounderx

Description

@Bounderx

when i do cargo build this error comes up. What is it ?

ubuntu@ubuntu:~/rust/projektx$ cargo build Compiling conduit v0.1.0 (/home/ubuntu/rust/projektx) error[E0277]: the trait bound uuid::Uuid: diesel::Expressionis not satisfied --> src/models/article.rs:18:17 | 18 | #[derive(Debug, Insertable)] | ^^^^^^^^^^ the traitdiesel::Expressionis not implemented foruuid::Uuid| = note: required because of the requirements on the impl ofdiesel::expression::AsExpressiondiesel::sql_types::Uuidforuuid::Uuid`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:18:17
|
18 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:38:17
|
38 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:38:17
|
38 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article_tag.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article_tag.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/comment.rs:16:17
|
16 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/comment.rs:16:17
|
16 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/follower.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/follower.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:18:17
|
18 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article.rs:38:17
|
38 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/article_tag.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/comment.rs:16:17
|
16 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound uuid::Uuid: diesel::Expression is not satisfied
--> src/models/follower.rs:15:17
|
15 | #[derive(Debug, Insertable)]
| ^^^^^^^^^^ the trait diesel::Expression is not implemented for uuid::Uuid
|
= note: required because of the requirements on the impl of diesel::Expression for &'insert uuid::Uuid
= note: required because of the requirements on the impl of diesel::expression::AsExpression<diesel::sql_types::Uuid> for &'insert uuid::Uuid
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 15 previous errors

For more information about this error, try rustc --explain E0277.
error: could not compile conduit.

To learn more, run the command again with --verbose.
ubuntu@ubuntu:~/rust/projektx$
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions