Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign updiesel::insert compilation error #1296
Comments
This comment has been minimized.
|
On diesels master-branch the story around insert changed drastically. The new |
weiznich
added
documentation
question
labels
Nov 7, 2017
This comment has been minimized.
attdona
commented
Nov 8, 2017
|
Ok, it make sense for me to try the latest diesel.
rustc output:
The online docs http://docs.diesel.rs/diesel/pg/struct.PgConnection.html states that the My only Cargo.toml change (original line commented): |
This comment has been minimized.
|
You will need to use |
This comment has been minimized.
attdona
commented
Nov 8, 2017
|
I tried, but clearly I'm doing it in a wrong way ... Cargo.toml:
rustc output:
|
This comment has been minimized.
|
Make sure you also point |
This comment has been minimized.
attdona
commented
Nov 8, 2017
|
Ok, pointing at master also diesel_codegen and diesel_infer_schema it works as expected: Just in case could help someone this is my setup (../diesel directory is the root of diesel github clone):
@sgrif Thanks for your suggestions! |
attdona commentedNov 5, 2017
Setup
Versions
Problem Description
This code snippet:
Throws the compile error:
Using a struct for value (the commented line) rustc compiles.
What is going wrong? I don't understand the error message.
Greetings
Attilio