| error: Deriving `AsChangeset` on a structure that only contains the primary key isn't supported. |
| --> $DIR/as_changeset_struct_with_only_primary_key.rs:17:10 |
| | |
| 17 | #[derive(AsChangeset)] |
| | ^^^^^^^^^^^ |
| | |
| = help: If you want to change the primary key of a row, you should do so with `.set(table::id.eq(new_id))`. |
| = note: `#[derive(AsChangeset)]` never changes the primary key of a row. |
| = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| |
| error[E0601]: `main` function not found in crate `as_changeset_struct_with_only_primary_key` |
| --> $DIR/as_changeset_struct_with_only_primary_key.rs:1:1 |
| | |
| 1 | / #[macro_use] extern crate diesel; |
| 2 | | |
| 3 | | table! { |
| 4 | | foo { |
| ... | |
| 20 | | id: i32, |
| 21 | | } |
| | |_^ consider adding a `main` function to `$DIR/as_changeset_struct_with_only_primary_key.rs` |
| |
| error[E0277]: the trait bound `(): diesel::AsChangeset` is not satisfied |
| --> $DIR/as_changeset_struct_with_only_primary_key.rs:17:10 |
| | |
| 17 | #[derive(AsChangeset)] |
| | ^^^^^^^^^^^ the trait `diesel::AsChangeset` is not implemented for `()` |
| | |
| = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) |
| |
| error: aborting due to 3 previous errors |
| |
| Some errors have detailed explanations: E0277, E0601. |
| For more information about an error, try `rustc --explain E0277`. |